At the sea border the Belgians flooded the land to create an obstacle. From google.
At the Swiss border the French trench ended near the Largue river and the Germans continued a bit on their own border with Switzerland to counter any attack the French might move through Switzerland. Also, the Swiss made sure to defend their border against both France and German incursions.