What's the best way to prevent muscle cramps in my feet after exercise?

Warm down. Make sure you warm down after exercising at least for 1/2 the amount of time you took to warm up. For the feet and ankles, do gentle wall calf stretches and massage feet as needed. Also make sure you're wearing good footwear and stay hydrated!