Creates a filter, which yields a successful result when the input number <= max
The inclusive upper bound of the range