As to intent, the concept of "deterrence, but never going over the edge" doesn't really exist--if you're never going over the edge, then where does the deterrence come from? At best it's a bluff, like threatening someone with an unloaded gun. But would you really want to bet your life that Iran has put maybe a quarter of their GDP (including sanctions impact; the program itself is much less) into a bluff? We can't read minds, and their costly actions seem like much more reliable signals than our guesses at their intent.
Switzerland is an odd comparison, since they got their capabilities in what they openly described as the initial stages of a nuclear weapons program. Since abandoning that, Switzerland has been divesting its enriched uranium. If Switzerland were instead building up its stockpile while funding proxies to (conventionally) strike its neighbors, then I'd expect some combination of sanctions and military action there too.