As someone who has been written up at a prior job for nebulously "being creepy" it would be nice to be able to see the trucks coming. For most things that are against the rules in the workplace, there are a list of things you shouldn't do, and you can avoid trouble by simply not doing them. In my case, nobody in HR would tell me what not to do, even though I asked repeatedly. It was just "we got complaints that you were making women feel uncomfortable so please stop doing whatever you were doing." When pressed for examples, none were forthcoming. How is that actionable? How am I responsible for what is inside the thoughts of other people I work with?
I'm now very careful with my interactions with women at work. No 1:1 meetings, all conversation must be strictly work related, no walking the same direction, avoid eye contact as much as possible, etc. It's a total minefield and you need to minimize how much you walk through it, especially if you have a great job.