Strategy
You are ahead in the race: should you still place walls?
You need 2 steps. Your rival needs 3. It is your move.
Best move
A step to e8.
Race before: you 2 steps, rival 3 (+1). After: you 1, rival 3 (+2).
Count, then walk
You are +1 in the race and it is your turn. Every step you take keeps that lead. After e8 you need just 1, and the rival cannot catch up in time with one step per turn.
Why the wall is a waste of a turn here
A wall like d1h stretches the rival to 4 steps, but you are still on 2. You were winning before, you are winning after, and you have spent a turn and a wall. Walls are for races you are losing or about to lose.
Keep one eye on their walls
The only way back for the rival is to wall you. Keep walls of your own ready to answer, and keep counting: if a rival wall puts you behind, that is when your own walls come out.

Takeaway
Ahead and on the move? Walk. Use walls when the count says you are losing.
Practise this in Wall Duel. Ten bots from Pebble to Titan, ranked duels, and a post-game review that shows where your games turn. Free to play, as much as you want.