I think what the other people are talking about is situations like this.
See the marked intersection. Now, despite the right path being an obvious dead end, it will continue to go down that path until every square is marked red, and inevitably die to the lava, instead of just taking a different path altogether.