The text is a proverb suggesting that one should avoid talking about sensitive subjects in certain situations. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
In the house of the hanged man , mention not the rope .