How to limit rotation without gimbal lock?

Sorry, I can’t see your vids, I get