If you know that is a high risk scenario then the company’s legal advisors should put rules and enforcement in place to forbid such relationships and thereby transfer liability to offending employees.
There is no individual liability for sexual harassment in the US, only for employers. Anyway, my point was just to respond to someone claiming there was criminal liability.