if the mag levels are too high, it will increase the chances that calcium carbonate will precipitate into the water column.
if your mag levels are too low, you will also risk precipitation (typically on your equipment like pumps & heaters), of calcium carbonate (because the water column becomes super saturated)...
bottom line is that magnesium needs to be low.. but not so low that you start to get precipitation on your equipment (equipment that is warm will attract the magnesium first)
What's your pH ? (low ph will keep the calcium carbonate from precipitating on your equipment if you have low magnesium) (higher ph will enable your corals to grow faster using the calcium carbonate in the water column, but will also increase the likelihood that a low magnesium level will allow calcium carbonate to accumulate on your equipment)
(the growth of coralline algae could be forming on your liverock, it's not always on the glass that it forms - if your live rock is purpleing up, then that's why your calcium levels are dropping)