If you consider low-stakes crimes, typically to get to a steady state of effectiveness you need at least some sort of bootstrapped period of ubiquitous enforcement. If that's impossible then I'm not sure you ever get to effectiveness.
If we're talking high-stakes, death-penalty-lottery-if-you-break-the-rules type stuff, then I think actually detection rate (i.e. consistent enforcement) is the biggest predictor of reduced rates, not severity of punishment.
Let's also acknowledge that you're straying further and further from the central point of this particular discussion. This is not simply about "intermittent" enforcement. Enforcement of this rule will be extremely difficult, if not impossible, as the technology gets more sophisticated.
Laws that are enforced and more importantly are enforceable have a much higher rate of making a difference. The same works here.
Laws, per se, are not meaningless. How effective they are is utterly irrelevant in this context; it's another question altogether.