Cramps while walking....

Hali • 22yrs old. Mommy to a beautiful little girl and another girl on her way.
My Dr told me today that if I get cramps from walking again and they last an hour after the walk to go in to get my cervix checked. I'm 30 weeks is this something normal or to be worried about? Also I need some good foods that's high in protein.