Help cramps

How do I know the difference between pregnancy cramps and period cramps