The text is a proverbial expression meaning that a bad influence can affect those around it. It does not play on different meanings of a word or similar-sounding words for a humorous or rhetorical effect.
A rotten apple injures its companions .