MIAMI GARDENS, Fla. — Whatever Odell had, all the other Giants should order it.

After missing the first series of the second half while undergoing an IV treatment, Odell Beckham Jr. returned to the field and caught two touchdown passes to lead the Giants to a sorely needed 31-24 victory over the Dolphins on Monday night at Sun Life Stadium while further cementing his status as the most exciting receiver in the NFL.

The win snapped a three-game losing streak and kept the Giants (6-7) in a three-way tie for first place in the NFC East with Washington and Philadelphia. Miami fell to 5-8.

Even with the lead Beckham granted them, the Giants had to make stops. They had blown late fourth-quarter leads in five of their seven losses, but the defense forced punts with 7:18 and 4:39 remaining and the offense picked up a few first downs to help run down the clock. Beckham made a sliding catch inside two minutes to keep the ball away from Miami.

Eli Manning threw for 337 yards and four TDs and completed 27 of 31 for the highest completion percentage (87.1) in Giants history. Rashad Jennings had his best rushing output of the season with 81 yards on 22 carries.

Beckham was expected to show off his hands against the Dolphins and former LSU teammate and fellow one-handed catch enthusiast Jarvis Landry. Instead, it was his feet that became the stars.

An 84-yard connection to a wide- open Beckham gave the Giants a 31-24 lead with 11:13 left in the game. Beckham ran a slant-and-go that drew the safety toward the first act of the route, then drove up the field and caught the pass while flashing his sprinter’s speed on the play.

He demonstrated more finesse on his previous touchdown. Beckham caught a ball in the end zone in which his toes were blades of grass away from the sideline to tie the score at 24 with 5:01 left in the third. It was so close that the play originally was ruled incomplete and out of bounds, but Tom Coughlin challenged it. The pylon camera used in the ESPN broadcast showed a close-up of Beckham’s toes dragging as he made the grab.

When that drive began, Beckham was in the locker room getting an IV to prevent cramping in the second half. He also missed Miami scoring a go-ahead touchdown when Prince Amukamara badly misplayed a deep pass for Kenny Stills that turned into a 47-yard completion to give the Dolphins a 24-17 lead on their first drive of the half.

Beckham was expected to show off his hands against the Dolphins and former LSU teammate Jarvis Landry. Instead, it was Beckham’s feet that became stars.

Beckham caught a third-quarter pass in the end zone on which his toes were blades of grass away from the sideline to tie the score at 24 with 5:01 left in the third. It was so close that the play originally was ruled incomplete and out of bounds, but Tom Coughlin challenged it. The pylon camera used in the ESPN broadcast showed a close-up of Beckham’s toes dragging as he made the grab. The largely pro-Giants crowd in New York’s sixth borough cheered loudly when the replay was shown on the board as well as when referee Craig Wrolstad made the announcement.

When that drive began, Beckham was in the locker room getting an IV to prevent cramping in the second half. He also missed Miami’s go-ahead touchdown, when Prince Amukamara badly misplayed a deep pass for Kenny Stills that turned into a 47-yard completion to give the Dolphins a 24-17 lead on their first drive of the half.

The first-ever NFL touchdown by a player from Stony Brook University tied the score at 17 just before the half. Rookie tight end Will Tye caught a 5-yard pass with 44 seconds left. The TD came two snaps after Manning completed a 45-yard pass to Beckham, with an extra 15 yards tacked on thanks to a roughing-the-passer flag against Olivier Vernon.

Lamar Miller scored on first-half runs of 14 and 38 yards, each time exposing the Giants’ poor tackling. J.T. Thomas and Craig Dahl each had a chance to bring him down on the 14-yarder. Then he eluded four tackle attempts, including one in which Jason Pierre-Paul had him around an ankle, on the longer run, which gave the Dolphins a 14-10 lead.

Notes & quotes: DE Damontre Moore, whom the Giants waived Friday, was claimed by the Dolphins. The acquisition will be announced officially Tuesday. Moore was involved in a series of transgressions that culminated in an altercation in the locker room with DT Cullen Jenkins over headphones that Beckham had gifted to teammates . . . Rookie LT Ereck Flowers, who was carted off the field last week with a high ankle sprain, started for the Giants. He was a limited participant in practices . . . DE Robert Ayers Jr. (neck) started after missing practice Friday and Saturday . . . S Brandon Meriweather (knee) missed a second straight game . . . DT Markus Kuhn left in the third quarter with a knee injury and did not return.