man muss mit den Wölfen heulen

Etymology
lit. 'one has to howl with the wolves'.

Proverb

 * 1) Behave as those around do, so as to not get into trouble; when in Rome, do as the Romans do