The text is a proverb or saying that means you can judge the quality or value of something by looking at the results it produces. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
You know the tree by its fruit .