Eating more magnesium-rich foods, like fruit, can help boost magnesium intake. Prickly pear is a plant native to Mexico. It grows oval-shaped fruits that have a sweet, berry-like flavor.