TORONTO (AP) — The Toronto Blue Jays remained on the brink of a playoff spot after they lost 7-5 to Taylor Walls and the Tampa Bay Rays in 10 innings.

Walls lifted the Rays to a 6-4 lead with a two-run single off Jordan Hicks (3-9) with two out in the 10th. Junior Caminero then drove in Raimel Tapia with an infield single.

Rays right-hander Chris Devenski (6-4) pitched two innings for the win, working around Bo Bichette’s RBI double in the 10th.

Harold Ramírez had three hits for the Rays, including a tying two-run homer off Trevor Richards in the fifth.

George Springer hit a two-out double off Devenski in the bottom of the ninth, but Cavan Biggio flied out to send it to extra innings.

Daulton Varsho homered and drove in three runs, but it wasn’t enough for the Blue Jays.