Europe is asking illegal economic migrants to stay away.

“I want to appeal to all potential illegal economic migrants, wherever you are from: Do not come to Europe,” Donald Tusk, the European Council’s president, said in Athens, the Greek capital. “Do not risk your lives and your money. It is all for nothing. Greece, or any other European country, will no longer be a transit country.”

More than 1 million refugees and migrants have entered Europe since the beginning of 2015. This year alone, some 124,000 people have taken the Mediterranean route to Greece. Of these, more than 55,000 are Syrians fleeing the five-year-long civil war in their country; more than 31,000 Afghan, more than 20,000 are Iraqis.

The Financial Times notes Tusk’s remarks are unlikely to affect those fleeing the war zones in Syria and Iraq, but they are likely to affect Afghans and others, whom the European view as not being in imminent danger if they return home.

Under the Geneva Conventions, countries cannot turn away asylum-seekers, but economic migrants—even if they are fleeing a restive country such as Afghanistan—enjoy no such protection. (For a difference between the terms, go here.)

Tusk’s comments in Greece on Thursday were made in advance of his trip to Turkey. The EU is trying to persuade them to stem the flow of migrants to the west. But both countries are struggling with the numbers of people fleeing the civil war in Syria and unrest elsewhere. Of the 4.8 million registered Syrian refugees, 2.7 million are in Turkey. Greece is coping with another problem. Some 25,000 migrants are stranded in the country because individual EU member states have passed restrictions on their entry. Additionally, some 2,000 people are entering the country each day.