The text is a proverb advising against taking drastic action to solve a small problem, as it would result in greater loss. It does not play on different meanings of a word or similar-sounding words.
Burn not your house to rid it of the mouse .