I had a (female) manager years ago who did this to me, looking back I feel it was a kind of gaslighting.
One day she told me I had my name badge on the wrong side of my shirt - no kidding. Later that morning her boss came in and was wearing her badge on the same side as me. Guess what, she didn’t say a word, backs up what Blueowl says about hierarchy. Many other experiences with this woman, and eventually I left the job partly because of the weird dynamics we had. It’s a form of bullying imo. I haven’t experienced it since, it was her not me is my conclusion, but sadly at the time I really thought I was inadequate in some way.
I wouldn’t handle the situation or someone like that in the same way now I hope. I’d advise others to speak out if they experience this too. It is bullying imo.