Lie down with dogs, get up with fleas.
Old Italian saying via Grandma.
I heard the same thing as a Polish folk saying. Practical wisdom transcends ethnic boundaries.