When a ped is crossing a road, eg a side road that I am turning into, I sometimes aim to ride behind them, adjusting my speed to avoid collision. One of the dangers of this is that peds can reverse and step backwards into my path.
I have no idea why they do this but it happens frequently enough that I factor it ino my riding.