Strategy
How to stop a pawn that is two steps from winning
Your rival needs only 2 steps to reach row 1. You need 3. Racing loses. What now?
Best move
A horizontal wall between rows 2 and 3, across columns d and e (d2h).
Race before: you 3 steps, rival 2 (-1). After: you 3, rival 5 (+2).
Count first
Before every move in Wall Duel, count both races. You need 3 steps to reach row 9. Your rival needs 2. If you simply step forward, the rival is still ahead and it is their move. A race you are behind in does not get better by racing.
Find the gap, not the pawn
Your two earlier walls already cover columns b–c and f–g just above the rival's goal row. The only short way through is the gap at columns d and e. A wall placed right in front of the pawn is the obvious idea, but what matters is closing that gap: d2h covers exactly d and e.
After d2h the rival has to walk all the way around one of your walls: 5 steps instead of 2. Your own route is untouched at 3. The race goes from -1 to +2 in your favour.
Why stepping forward fails
Stepping to e7 brings you to 2 steps, but the rival still needs only 2 and moves next. They reach row 1 first. Walls win races when they lengthen the rival's shortest route by more than one step; here one wall adds 3.

Takeaway
Look for the gap your walls leave, not the square in front of the pawn. The best wall closes the last short route and forces the longest detour.
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.