If you lie down with dogs, you will get up with fleas
You should be careful of you associate with
The expression is first found in print in the English writer James J. Sanforde’s Garden of Pleasure, 1573. "He that goeth to bedde wyth Dogges, aryseth with fleas"