Sleep with a pillow between your legs that's what's helped me with my leg cramps
Eat more bananas you might be lacking potassium
I got them before showing too drink lots of water and google leg and foot stretches for it they really work mine went away but came back at 35w bt the stretches really help especially if you do them everynight before bed