You’re a guest, and guests need to be gracious to their hosts. Don’t be rude to locals or look down on them, especially when it’s obvious you have a lot more money than they do.
Again, you’re a guest. Take good care of the places you stay and visit. Clean up after yourself. Show your hosts the very best of you and where you come from.
As the saying goes, when in Rome, do as the Romans do. You’re expected to follow the local rules and laws no matter where you’re from. Being expelled from another country is bad enough.
There are many countries that have far more conservative clothing expectations than America as a whole does. Often unfairly, this applies even more so to women.