BRUSSELS (AP) — France is imposing nationwide restrictions on how far from their homes people can go and for what purpose as part of the country's strategy to stop the spread of the new coronavirus.

French President Emmanuel Macron said that "movements will be very strongly reduced” for 15 days starting at midday Tuesday.

He says residents will only be permitted to leave their homes for necessary trips such as going to work or the supermarket.

Macron said in televised remarks that the government decided to order the restrictions because people haven't complied with earlier public health measures and “we are at war.”

Macron added that any violations will be penalized, without elaborating how.

As of earlier Monday, France had reported 5,397 virus cases, more than the United States.

The European Union moved Monday to suppress the spread of the coronavirus by restricting foreign travelers while also proposing fast-track traffic lanes to make sure vital medical equipment reaches EU citizens.

The plan was announced almost a week after a nationwide lockdown took effect in Italy, the country with the most reported virus cases in the world except for China. Spain followed suit over the weekend, while other EU nations have adopted ad hoc national measures, including partial border closures.

EU officials fear that countries acting alone and without coordination might make things more difficult for neighbors whose health-care systems are already creaking. The virus has infected more than 50,000 people across Europe and caused 2,000 deaths.

“The less travel, the more we can contain the virus," European Commission President Ursula von der Leyen said, as she unveiled the plan that Brussels will put to to the bloc's 27 leaders at a summit to be held via video-conference on Tuesday.

She said travel restrictions into Europe should be put in place for an initial period of 30 days. Exemptions could be given to long-term residents in the EU, border area workers, family members of European nationals and diplomats.

British citizens would not be included in the ban, even though the country officially withdrew from the EU on Jan. 31

“Essential staff such as doctors, nurses, care workers, researchers and experts that help address the coronavirus should continue to be allowed in the EU," von der Leyen said.

Transport workers also could receive exemptions to ensure supplies of “essential items such as medicine, but also food and components that our factories need," she said.

On the borders inside the 26-country area of Europe that is visa- and passport-free for citizens and authorized residents, fast lanes would be set up for transporting medical supplies and essential goods. EU officials said the goal is to help cut down on traffic jams in border areas and to keep EU economies working as the disease chips away at world markets.

The overall idea is “to reduce unnecessary movement, but at the same time to ensure the movement of merchandise, of goods, so that we can guarantee as much as possible the integrity of the single market, guarantee the deliveries that are needed.” EU Council President Charles Michel said.

In recent days, the EU has been urging its members to put common health screening procedures in place at internal borders but not to block the transport of important medical equipment.

In a series of border management guidelines, the European Commission said countries should help ease the movement of workers and goods like medicines or perishable food products and livestock within Europe but refrain from imposing any other restrictions that are not science-based.

Jon Worth, a visiting lecturer at the College of Europe in Bruges, said he was not surprised that countries decided to restrict the movement of people at their borders given that health care is a matter of national responsibility, not in the hands of Brussels.

“But the single market is definitely the EU’s responsibility and they have to make sure the chain of supply does not break down," he told The Associated Press on Monday. “That will be the short-term challenge to come.”

For most people, the virus causes only mild or moderate symptoms, such as fever and cough. For some, especially older adults and people with existing health problems, it can cause more severe illness, including pneumonia.

To ensure they get the help they need, “essential goods and medicines must be able to cross borders as smoothly as possible. This is a time for solidarity and cooperation,” EU Health Commissioner Stella Kyriakides tweeted, after hosting a separate virtual meeting of the bloc’s health ministers.

EU finance ministers also held coronavirus talks by computer Monday, as the disease and the efforts to combat it take their toll on the bloc’s economy.

Worth noted that the EU's limited financial means were a major obstacle in the response to the crisis and that deploying the medical aid needed across the bloc with a very restricted budget was a tall order.

“The total British NHS budget is larger than the EU's total budget for everything per year,” he said. “At EU level, you don’t have the means to sort out this problem.”

Sylvie Corbet in Paris contributed to this report.