Turn Up the Heat and Instant Gentleman led to a sexual harassment accusation

Did you just hug her or did you pull on her shirt or anything? Did she protest?

Because I did not realise one normal hug could be understood as sexual harassment. I thought that was when someone repeatedly says or does sexual things even if you told him to stop.