Hey there @Psyball! This implementation is going to depend a bit on your final needs, but in most cases you should just be able to clamp the rotation itself.
If you’re setting rotation via an input, something simple like this works:
However if you’re adding rotation, you’ll need a bit more like this:
Hope this points you in the right direction!