The text is an idiomatic expression that suggests that one who associates with bad company will likely be influenced negatively by them. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
If you lie down with dogs , you ' ll get up with fleas .