Spurs nearly lost their unbeaten record; instead they came away with the most dramatic of wins.