郷に入っては郷に従え

Etymology
. The back-formation of this form in pseudo-kanbun would be 入鄉從鄉 (also compare 🇨🇬).

Proverb

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