The text appears to be an old proverb or saying that suggests a person who is concerned about shame will be taken by it. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
Shame take him that shame thinketh .