36w gas pain?

36w and feeling intense/ very painful pain in my lower back and abdomen every few minutes. I’m having contractions but not every time I feel this pain (checking each time see if belly gets hard) it only lasts maybe 5-10 seconds but it’s EXTREME. Has anyone had this? Is this gas? I’m also contipated