How to limit rotation without gimbal lock?

This work, no matter the rotation of the actor

Any good?