WAUSAU, WI—Algebra teacher Cherie Dunham, 26, was going to pull a 16-year-old student out of class for sex but, given all the fuss in the news lately, thought better of it.