Need help asap!

Kayla
Ok yesterday I had my check up (28 weeks) I told my dr I've been having bad headaches I've tired everything and she gave me Flexeril, I assumed it is safe since she gave it to me but I took the first one last night and my lower back started to cramp up on and off so I just went and laid down, went to sleep took another this morning. Then I called my mom because I've been feeling like shit headache crampy lower back pain, she told me Flexeril is not safe to take during pregnancy because is relaxes the muscles that's holding the baby in and now she worried I'm having the baby and wants me to go to hospital I dont know what to do because I don't feel like I'm having contractions just pains. What should I do?