If I understand the question correctly, you want to be able to rotate the component, but only a certain distance? You can just use a conditional statement.
Angle = if(inputAngle<maxAngle, inputAngle, maxAngle)
If you wanted to actually be using the rotate tool, you could nest the component within a shell, and have the nested component compensate when the shell's rotation exceeds the max rotation. I don't think you can have a single rotation attribute constrained with a formula and still be able to directly alter it with the rotation tool, unfortunately.