Swelling is because of infection. please check if you have caries or you have broken tooth. gums infection also can cause swelling. Do you have pain or white discharge near that area? In case of infection, medicines should be taken but that can be prescribed by the Dentist or professionals.