clamp camera rotation?

Hi there :D…I’m having a bit of a glitch that can be prevented if my cameras rotation angles are clamped. How might you be able to clamp the rotation angle of a camera, such as pitch.