While swollen ankles are often benign, they can sometimes indicate a more serious condition such as preeclampsia during pregnancy, which is characterized by high blood pressure and protein in the urine. If left untreated, preeclampsia can lead to severe complications for both the mother and the baby. It is crucial to consult a healthcare provider if swelling is accompanied by other symptoms such as severe headache, visual disturbances, or abdominal pain.