Try to see if the swelling goes away by elevating your legs, using warm salt water to treat them, and reducing your salt intake for about 3-4 days. If your ankles are still swollen and you don't see any improvements, accompanied by more pain or discoloration, you should visit your doctor. It can lead to complicated issues like deep vein thrombosis.