Cramps at 31 week's?

Ok I'm 31 week's and keep feeling these bad cramps like deep in the middle of my stomach but they only last a few seconds. I asked my midwife what this pain was and she thinks it's movement