A Joke never gains an enemy but often loses a friend. meaning

HOME PROVERBS

joke

A Joke never gains an enemy but often loses a friend.

said to mean that:
A friend can be offended by a rude joke whereas nobody will become enemy just because of a joke.