The text is an idiom that means a bad person, policy, etc., can ruin everything around it. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
One rotten apple will spoil the whole barrel .