“What if the teacher is female?”
Well then...as we all know...
it depends on what she looks like!!
More to the point, in principle I am skeptical of “zero tolerance” rules and laws.
Is a teacher banging a student wrong? Yes.
Should the teacher be fired? Yes.
Does it merit the teacher being labeled a sex offender for life? Each case is unique.