Meaning of the word "if you lie down with dogs, you will get up with fleas" in English

What does "if you lie down with dogs, you will get up with fleas" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

if you lie down with dogs, you will get up with fleas

US /ɪf ju laɪ daʊn wɪð dɔɡz, ju wɪl ɡɛt ʌp wɪð fliz/
UK /ɪf ju laɪ daʊn wɪð dɒɡz, ju wɪl ɡɛt ʌp wɪð fliːz/
"if you lie down with dogs, you will get up with fleas" picture

Idiom

if you associate with bad or dishonest people, you will eventually suffer the same consequences or develop the same bad habits

Example:
I warned him that if you lie down with dogs, you will get up with fleas, and now he's in trouble with the police just like his friends.
You shouldn't hang out with those troublemakers; if you lie down with dogs, you will get up with fleas.