What's the difference between pregnancy and period cramps?

Ruby

I thought I was pregnant for the last two-three weeks but now I'm having cramps it only was two times yesterday (once at around 9 am and again around 8 pm) but I just assumed it was period cramps and that means I'm not pregnant. My period is due on March 9th so it would line up. What do y'all think?