fluids as one strategy that may help prevent muscle cramps.
Unless your doctor has told you to restrict fluids because of heart, kidney, or another medical condition, drinking regularly throughout the day is a useful habit.
Stretching May Help Too
If nighttime leg cramps are your main problem, don’t rely entirely on food.
Gentle stretching can help.
MedlinePlus recommends stretching the affected muscle for relief and notes that stretching before exercise—or before bed for people who frequently experience nighttime leg cramps—may help prevent cramps.
Regular physical activity can also help