Adding boundaries to an object's rotation


It rotates correctly but if i go to the edges, the left lock pick just bugs and stops moving. It isn’t very smooth. Any ideas on how to fix it?
lockpickrotatebug