Rework a range check to be less ambiguous.