As far as I understand that it was more of a defence race between Germany and French as both sides rapidly armed and fortified their side of the Maginot line.
But why not go further south to borders Switzerland? Why a German flank wasn't expected from there as ocupation/invasion of Switzerland was a possible option for German Blitzkreig?
About the Belgium fortifications; my understanding is that French expected the fortifications and defensive measurements to be strong enough to hold Germans back or at least slow them down.
Why did French relied on Belgian defences in such confidency?
I dug around to see if your question popped up before, which it has, and I commend to your attention these following excellent answers: