Greek authorities thwarted an overnight attempt of about 1,000 people trying to cross the Ervos River into the country from Turkey, as thousands more search for ways into Greece on land.

Officials said that in 24 hours between Monday and Tuesday morning, 5,183 people were prevented from entering Greece. They said 45 people were detained.

On Tuesday morning, two men — one from Mali and one from Afghanistan — were arrested by Greek authorities shortly after crossing the border, and loaded into a van with about 20 more people, from Somalia, Afghanistan, Bangladesh and Iraq, the Associated Press reported.

TURKEY'S ERDOGAN WARNS EUROPE TO EXPECT 'MILLIONS' OF MIGRANTS AFTER EASING BORDER RESTRICTIONS

The new influx of migrants attempting to illegally enter Europe comes days after Turkish President Recep Tayyip Erdogan announced his country was easing restrictions on those wishing to cross the border to leave Turkey.

He said his country, which has more than 3.5 million Syrian refugees, is unable to cope with a new wave and demands Europe’s support.

“It’s done, the gates are open,” Erdogan said Monday in a televised statement. “You will have your share of this burden now.”

He warned that Europe could expect “millions” of migrants and refugees.

Greek officials said the main pressure on the border Tuesday moved from the official crossing points, farther south along the Evros River. Many hopefuls were trying to wade or row across the waterway.

THOUSANDS OF MIGRANTS MASS TO GREEK BORDER, MORE FLEE SYRIA

Top EU officials took a tour with Greek Prime Minister Kyriakos Mitsotakis of the area around the land border to discuss what Greece describes as a threat to its national security.

The movement by migrants appeared well organized, with buses, minibuses and cars in Istanbul ferrying people to the border, roughly a three- to four-hour drive from the Turkish capital.

The vast majority appeared to be Afghans, along with those from Iran, Iraq, Bangladesh, and Syria, the Associated Press reported.

Greece has made it clear that its borders are closed. Military and police reinforcements have used tear gas and water cannons to repel attempts by migrants to cross into the country.

CLICK HERE TO GET THE FOX NEWS

A young boy died Monday after the dinghy he was in capsized off the island of Lesbos. The other 47 people in the boat were rescued.

Since early Saturday – when the first influx of migrants attempted to cross the border – Greek authorities have stopped more than 24,000 illegal crossings at the land border with Turkey and arrested 183 people. Very few of them were Syrians, officials said.

The Associated Press contributed to this report.