Camera Clamp Issue

So I have tried it with original clamp values set to the bottom but I ran into a weird bug where when you toggle it moving backwards instead of the character moving forward while looking back the movement switches going forward switches to moving in the backwards direction instead of just moving forward while looking back if that makes sense would you have an example of how this could be fixed or another way of being able to clamp the back view camera or disabling the mouse movement when looking back?