40dawg got it. . My grandparents had a similar saying: "Lie down with dogs, and you'll get up with fleas." . Like dawg said, it's a warning to be careful of who you hang out with. You can pick up their bad habits or attitudes, or get in trouble for something they are doing (whether you do it or not), or just get judged by other people as being the same sort of person.