It is probably something very innocent like a pulled ligament or something dodgy you have eaten, but on the offchance it is not I would advise you to go to the maternity unit for a quick assessment, or at the very least call your midwife of OB to describe exactly what is happening. A period type pain in pregnancy could indicate early labour and it's not something you should ignore