There is this missconception (for me at least) that a joke must be accepted by all stakeholders.

I think it can be funny to some and offensive to others. Still a joke.

There are some lines I personally don’t cross but mostly i don’t take any prisoners.

I think a joke can have a victim, like if it’s punching down at people who are already in a position where they can’t push back. Punching up is great. But it stops being funny when it targets people who are already struggling to make it. Comes off as mean, jot funny.
You are eight on your description what would be decent. The end of Our comment is based on the view of a specific observer, whoa opinion I might not share (depending on the joke). So to me it is still a joke even if I am not laughing but the intention of the joker was clear.