I realised that when I was in high school, my friends and I had a relationship based on camaraderie and mockery. It wasn't offensive and we knew each other's boundaries but we would all be celebrating if one of us had stepped in dog poop and we would definitely not have warned him.
How could I get rid of this taste for mocking, no matter how friendly it is?
Buddhists are the most indifferent yet compassionate people I know because compassion requires impeccable mental silence at all times, and after so many years you realize it really doesn’t matter if your friend knows he’s about to step in poop or not. All that matters is that he learns his lesson, that he was too important to not notice the poop himself, and that’s not something you can tell him, he has to learn that lesson himself.
The best thing is be yourself but add a layer of “Hope I didn’t offend you - I like to tease sometimes”. And add a tonne of common sense too!
Then what's the problem?
At some point, you either start to think that this behaviour is too dumb for the person you want to be, or not.