Sure, we could all be more resilient. But sometimes offense is useful and valid! If I am urgently trying to get something done and somebody else picks that time to clown around and interfere with me, I don't think it's unreasonable to get mad.
I like joking around a lot, but reading the room is an important skill. To me it's important that the person I'm joking with actually enjoy it. A failed joke, one that annoys them is a mistake. People who persists in making jokes that the targets aren't laughing at are not really making jokes anymore; they're just being dicks. Which can also be a valid activity, but nobody should confuse it with joking around.