aki korpa közé keveredik, megeszik a disznók

Etymology
lit. 'he who mixes with the bran, will be eaten by the pigs', with ellipted from the second clause.

Proverb

 * 1) one who mixes with bad company, will oneself become corrupted