Saying “watch what you eat” can be reductive and too broad but be aware of water and food conditions before traveling. For milder cases, you can take bisuth subsalicylate, like Pepto-Bismol (among other brands) and increase fluids and electrolytes to replenish the body.