Get camera rotation in degrees

Hello, so i am having a problem with Cameras. I can’t get the rotation in degrees (its in X, Y, Z). So, my question is, how can i made it so that they can’t rotate more than 90 degrees (to each side)?

Any idea on how to calculate it in degrees or convert it?