code: def _in_bounds(prop, instance, value):
      
      if (
              (prop.min is not None and value < prop.min) or
              (prop.max is not None and value > prop.max)
      ):
          prop.error(instance, value, extra='Not within allowed range.')
docs: Checks if the value is in the range (min, max)