Sharp unbearable cramps

last night I had some very intense cramps. then came diarrhea (about after 1 in the morning) then I had diarrhea today. but now the cramps had subsided nd no more diarrhea.

AF is due tomorrow so I guess the cramps r because of that ?