Earlier quoted context omitted.
That's a good way to wind up unhappy and alone at work. Chances are that anyone using that strategy and isn't miserable has a fair number of unspoken assumptions about acceptable behavior, and don't actually use that strategy but are slightly more guarded that normal so they think they do.
That not wanting to be sexually harassed would make someone unhappy and miserable in a workplace is exactly the problem.
"Not wanting to be sexually harassed would make someone unhappy and miserable in a workplace" was not the assertion. The assertion was "going to such extremes as to guarantee that no claims of sexual harassment could at any time be made against you would make you unhappy and miserable in a workplace".