if you fly with the crows, you get shot with the crows

Proverb

 * 1) Somebody who spends time with undesirable people will be regarded as one of them.