How to make the jaw rotate properly

So I’m making a rig for a model of Allosaurus fragilis.


The thing is that when I rotate the jaw in any other position from exactly side on, it gets distorted



What I want to know is how I can open the jaw from anywhere w/o dealing with this.

Tick the lock icons next to the rotations you want to lock, in the N-Panel, Transforms.

Thank you so much