Apply heat before the exercise, ice after. Warm up and gently stretch before the workout. Cool down, stretch, and ice sore muscles afterwards.