On the other hand, if you do something in a foreign country which is legal in that place but illegal in your home country, you can be prosecuted back home for it.
Drinking underage for example, most examples of drugs too. Even internally in the US they don't have specific right to arrest someone for smoking weed in a state that is legal as federal agents on state land (or private), not within 50 miles of a border.
in what country are any of the things you listed legal?
[0]https://www.justice.gov/criminal/criminal-ceos/citizens-guid...
[1]https://en.m.wikipedia.org/wiki/Extraterritorial_jurisdictio...