How to map/limit LocalRotation ?

Hi,

im rotating a wheel around Z axis with touch sipe.
How can i limit the local rotation only ± 40degree from starting rotation (on Z)?