Limiting Aim offset

Here ya go this should cover the pitch you can do the same for the input of the yaw as well: