When I was teaching, I had to make it pretty clear to students that some of their actions were sexually harassing me and other students so with good advice from other posters here, successfully handling this situation may help you in the future with a teaching job.