入境隨俗

Etymology
Literally: Enter an area, follow the local customs.

Idiom

 * 1)  when in Rome, do as the Romans do