Store the angle in your own float, clamp that, then drive the rotation.
Notes on clamping camera rotation and NOT using .eulerAngles because of gimbal lock:
How to instantly see gimbal lock for yourself: