And, not all countries will get you legal help or treat you fairly if you commit a crime. So....DON'T.
Had a friend who stupidly bought a joint in Jamaica. He spent weeks in the most hellish jail you can imagine and it cost his dad a trip down there plus thousands for bail money. SOme countries will arrest "wealthy" Americans for the sole purpose of trying to get money out of us. Not all are bad, by any means and the people are usually just people, anywhere you go, but a couple of corrupt officials and you are in a lot more trouble than you would be in here in the U.S.