30 weeks! TMI

Having cramping in my stomach and back, on and off! Very uncomfortable! I did have a bowel movement/slight diarrhea 20 mins before this started. What could this be?