What is the meaning of [when in Rome, do as the Romans]

do You should always follow the customs, rules, and laws of the place where you are.