Cramps vs contractions

37 weeks and wanna know how to tell the difference between cramps and contractions?! Sometimes I have cramps but it winds up just being gas, I’ve also been having pelvic pains. I’m a FTM and can never tell if it’s contractions OR I just ate some food that makes me gassy ( which has been most foods, doesn’t matter what I’m eating it makes me gassy )