...
This usually happens when the step size is more than 1.
Compliant Solution
It is also insufficient to compare with Integer.MAX_VALUE - 1
when when the loop increment is greater than 1. To be compliant, ensure that the comparison is carried out with (Integer.MAX_VALUE
minus the step's value).
...