What can I do to prevent ankle swelling and pain?

Some prevention can be achieved by exercising appropriately, strengthening the foot and ankle stability and avoiding weight training by swimming, riding an exercise bike and doing flat supports, as the weight is then dispersed over the rest of the body and not on the lower limbs and feet.