Wear the appropriate footwear for the activity that you are doing.
Warm up and stretch before and after exercise.
Wear shoes that fit properly and are not excessively worn.
If you are carrying excess weight, look at appropriate weight loss.
Wear shoes that have shock absorbing soles, supportive heel counters and rigid shanks.