fă-te frate cu dracul până treci puntea

Etymology
lit. 'become a brother to the devil until you cross the bridge'.

Proverb

 * 1) if you can't beat them, join them