Contractions or Gas pain ?

Ja

I’m 39 weeks and I can’t tell if I’m having waves of gas pain or contractions?? Do they feel the same? Is there a way to tell the difference