Learn to identify a particular point that lets you know you have gone too far. Look for alternate routes in case of an emergency. Remember to check for potential danger in neighboring countries as well. Many times trouble can spill over from one country to another. Immerse Yourself in the Language, Laws, and Culture Learn as much about the laws, history, and culture of the country you're visiting as possible.
Natives tend to be much friendlier to outsiders who are knowledgeable about their country.
Avoid political discussions. You are a foreigner and the country's political issues are none of your business. Some mannerisms can cost you dearly. It is important to have a working knowledge of the language and basic cultural mores of the country you're visiting. He was holding an M16 and I was not about to argue, so I did as he said.