But these tips might help make them less likely: In some studies, taking a magnesium supplement reduced the number of leg ...