Old clamp method not working

I’ve tryed using the old version of clamping the rotation but it just won’t work for me (the camera obviously starts at -90 degrees and i`m trying to clamp between -45 and -135 aka ± 45 but i accidentally put -45 instead of -135 in the picture and ive fixed that)