Min/max validations for numeric type.