The defender catches a runaway pawn exactly when his king can step inside the pawn's square on his move; a diagonal path loses no time.
The same diagram, but with Black to move. The pawn's square is a4-a8-e8-e4, and the black king on f4 stands just outside its edge. One step takes him in.