Literally “entering the countryside, follow the custom [thereof].”
郷(ごう)に入(い)りては郷(ごう)に従(したが)え • (gō ni irite wa gō ni shitagae)