The text is a proverbial statement suggesting that one may be considered wise by not speaking, as opposed to speaking and proving oneself to be foolish. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
Better to remain silent and be thought a fool , than to open your mouth and remove all doubt .