I like DrJ's example, which I coded up here:
But then I thought, "This looks like putting a Max on a Control and coercing it to not get too big". If this is what you want to do, then do it (which explicitly says "I'm making this control to have the following Max value, and you cannot set it bigger!!!"). Here's the other case of this Diagram Disable (enabled for clarity):
Now this is in two pieces. The first piece of code that sets the Upper Limit goes in the initialization section (and if you want to modify the Safe Temp, you simply do it again). The Event code now is dirt simple -- just read the value and use it, as you know the values are safe by design (well, by LabVIEW code, anyway).
Bob Schor