Panicking ..advice needed..help

I will be 17 weeks pregnant tomorrow but getting some period like cramps randomly on and off on both sides and sometimes in between..they aren't very severe but there for me to notice..anybody else having this? I've had two early miscarriages before so panicking..had a scan Monday and things were okay till then.