The text is a proverb suggesting that one dishonest person is suitable to catch another dishonest person. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
Set a thief to catch a thief .