I always wondered how they did that.
Look at a topo map. Had Germany succeeded, the Swiss would have fallen as well.
As the other guy said, topography.
You can be sure the Reich put considerable diplomatic pressure on the Swiss but to take the small mountain country would've sucked up all Germany's special forces and upset their whole time-table for Denmark, Norway, Crete, etc.