A knight pawn one step from queening, and your king is far away on h8. The queen still wins. The rule: check or pin until his king has to stand in front of its own pawn, on b1. The pawn is blocked there, so you get a free move, and your king steps one square closer. Repeat until your king reaches the pawn.