You just have to learn some pre emptive self preservation tactics...like saying something about feeling harassed for age, color, sex, etc. out loud to no one in particular but where many can hear it...or accusing the boss of hating you because he thinks your gay...it won’t take long before you’re untouchable!
That doesn’t work if you’re a white male. We’re marked.