You can consult a dentist and get x-ray done. You also can do warm water gargling with the addition of salt and turmeric. If you feel such problem frequently then you can go for extraction of wisdom tooth. However, That will be decide by your dentist.