The main reason people get injuries is because of their own personal error. Incorrect technique, weight/intensity too much, or the area isn’t safe to exercise.
To help prevent an injury, follow instruction from a fitness professional, if you are unsure of what to do, just ask – they will be happy to help!
The next way to minimise the risk of injury is to ensure you warm up and cool down appropriately. Warming up is a big one, this helps prepare the body for the exercise you are about to take part in. It gets the blood flowing bringing oxygen and other things the body needs to help you exercise, while cooling down properly helps to realign your muscle fibres and disperse waste products like lactic acid, this helps to promote fresh nutrients which aids in the recovery process.
Eating and drinking the right foods and plenty of water will also help with preventing injuries.
Rest. You should rest according to your fitness level. Over training is also a big cause of injuries. Listen to your body. Your body is a very complex and extremely clever piece of kit. It will tell you if something is wrong, if it does LISTEN TO IT!! Working through it and not stopping or addressing the injury could end your training, depending on the severity. Respect previous injuries and your ability around that area/muscle group etc.
Going for sports massages and other maintenance treatments will hugely reduce your risk of injuries.