Spend 20-30 minutes prior to gymnastics doing stretches. You can find books on specific types or the gym you use might have pamphlets. You should also make sure to drink plenty of liquids so you don't dehydrate. Other than that be sure not to "hot dog" it. Use common safety practices for the type of gymnastic you perform.