If you roll a critical fail on a damage spell, you fail the spell and take maximum damage from it.