The upper spring force controls how much compression the spring can sustain.
If the value set here crosses the opposite bound, the two are swapped so the lower bound stays at or below the upper bound; this is silent and never warns. When changing both bounds from script, set them together through the joint definition, otherwise the order of the two assignments can leave them swapped.