Pregnancy cramps

When should you go to the ER when having pregnancy cramps?