See a dentist right away. You need to get rid of the infection and the pain. Both can lead to premature labor and complicate the delivery.
Even if the dentist does not treat the problem definitively, he/she can knock down the infection and get you out of pain until the baby is born. After the baby is born, you can return to the dentist to complete the necessary treatment and services.