Anyone else remember Neopets? They had a filter that was extreme and multilingual. I can't count how many times I'd write a friendly message, the filter would block it, and I would end up editing chunks of text trying to avoid whatever word or series of letters the filter thought was inappropriate. Sometimes it'd be a few letters embedded in another word (like "associate" being banned for the letters a s s.) But sometimes, I was truly stumped. The only explanation I can think of is that some letters in English words matched up to swears in other languages.
Anyway, fun fact - I met my first boyfriend through that site. We decided to see how dirty we could talk while still getting messages past the filter. We used innuendos, slang, and other turns of phrase with each other just to see what we could get away with.
In the end, all that filter did was make us more creative at communicating forbidden topics. Whoops ¯\_ (ツ)_/¯
The fact that you're thinking about others' perspectives at all is a good sign. Sometimes, when I can't understand the mindset of someone toxic and I get frustrated, I take a step back and consider what would happen if I did start thinking like them. The fact that it's difficult to imagine goes to show that I'm wired against certain shitty mindsets. It sounds like you are, too.
In trying to understand others, you're showing more thought and empathy than a lot of people bother to practice. It's frustrating and can be confusing at times, but you're not broken for being unable to view things through the eyes of someone that doesn't care about doing the right thing.