Cannon limitet movement

Hello.
Could you help me and guide how to limit cannon rotation?
Now i can move it freely and i would like it to stop at some angle

There are many ways, the most straightforward is the Clamp (float) node.