I totally understand how uncomfortable those cramps are. Try to lie down and rest, but please call your gynac if the pain is severe or doesn't go away.
My pregnancy tracker app recommended staying well-hydrated to reduce mild cramps. However, if the cramps are intense or regular, you must consult your gynac.
My mother used to give me warm water to drink and made me rest with a soft pillow under my feet. But if the cramps are too strong, please check with your gynac.