Believe it or not i actually knew not to do that, but it's an example in a course I'm taking.
That said it's plenty of reinforcement on the reasoning not to... I think I managed to overthink it and apply the condition again at the end of the loop... Just for the increment? I'm not even sure, but I've got it now. Appreciate the help.