Did you consider including the max/min values as valid (`>=`/`<=`)? It seems some or even all of the max/min values you specified should be considered valid.