36 weeks pregnant and having some upper stomach pain under ribs?

It's sharp kinda like little stabs. I've been having menstrual pain today to and my stomach is upset. Anyone else have this? Is this pre labor?