NEW YORK  — Brett Gardner made a leaping catch at the top of the left-field wall on Justin Smoak's bases-loaded drive for the final out, and the New York Yankees held on during a nervy ninth inning to beat the AL East-leading Toronto Blue Jays 7-6 on a misty Tuesday night.

A scrambly September game with October implications seesawed to the last swing, and turned at the end in favor of the Yankees. New York won its third in a row and sent Toronto to its fourth loss in five games.

At a season-high seven games over .500, the Yankees closed within 4½ games of first place, their smallest deficit since April, and remained 3½ back for the AL's second wild card.

The Blue Jays had already scored twice in the ninth off Dellin Betances when they loaded the bases with one out. Blake Parker, the eighth New York pitcher, suddenly became an unlikely closer, and he struck out Kevin Pillar.

Smoak was up next, and he hit a drive to deep left. Gardner ran back, jumped and corralled the ball at the top of the padding. He immediately leaped in the air to celebrate as the Yankees rushed out to congratulate him. A few minutes later, a replay of the catch drew another ovation from the fans.

Sign up for the NJ1015.com Newsletter

Get the best of NJ1015.com delivered to your inbox every day.

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)