The text is a proverb expressing the idea that two opposing parties can or should work together against a common enemy. It does not play on different meanings of a word or similar-sounding words for humorous effect.
The enemy of my enemy , is my friend .