There are a mix of `<` and `<=` comparisons being made across these three lines. Often, this kind of pattern would use `a <= x < b` to be inclusive on the lower bound and exclusive on the upper bound. Either way, it would be worth making these consistent or commenting as to why they can't be.