It's sad, for students who don't have a bad purpose from getting close to professors and it makes them think how far they could have been treated as inappropriate and immoral.
But it's good for teachers not to allow any student to approach, of course it's hard to recognize.