What are the best ways to prevent shoulder injuries during sports?

Stretch. Stretch out the musculature of the shoulder and ice the shoulder after activity.
Stretch. before and after activity. Ice after activity. Work on gradual strengthening of the shoulder muscles.
Training. A good program of rehabilitation that includes flexibility and stenghening and streching exercises.Should avoid overuse unless trained to do so.