Are there any method for limit the x axis?

I did one camera that you can switch from third person to first, so far so good. But that camera can rotate 360°. How can i do for limit it?