Before doing any exercise routine, warm up your muscles and tendons completely. This prepares them for the activity you’re about to do so they can get loose. A proper warm up also increases blood flow to the muscle groups, reducing their risk for pain and injury.
Loose muscle move more freely and help prevent injury. When your lower leg muscles are stretched properly, they are more flexible and they can perform better. If the muscles are tight, though, they get pushed beyond their natural range of motion too easily and become overstretched. Be sure to include a comprehensive stretching routine as part of any exercise or workout routine.
Stronger leg muscles don’t get fatigued as quickly or as often as weaker leg muscles. Be sure to include strengthening exercises for your lower legs with any routine. Many exercises are specifically designed to help prevent shin splints and you can find some of those exercises here. This article has an extensive section relating to shin splints and exercises you can use to avoid them.