Restore State not only resets value, but limits. Is this a glitch or by design?

I just discovered that if one uses “Save State” function and then later changes the internal limits of a slider, any later use of the “Restore State” function not only restores the previously saved visible slider value, but also the previous internal slider limits. This seems like a bug, no?