What can be done to prevent yourself from overheating?

Acclimatization. Our bodies are actually very good at adjusting to the heat or exercising in the heat but it does take time. Gradually building up is the key to acclimatization. Remaining well hydrated and avoiding exercise in the peak hours of the day can also help.