In this Feb. 2, 2020 file photograph, the company logo sits on an unsold 2020 Model X at a Tesla dealership in Littleton, Colo. Shares of Tesla Inc. fell 4% in early trading Thursday, Feb. 13, after the electric vehicle and solar panel maker said it would sell more than $2 billion worth of additional shares. The move comes just two weeks after CEO Elon Musk said the company had enough cash to fund its capital programs and it didn't need to raise any more money. (AP Photo/David Zalubowski, File)

A German court has temporarily halted the site preparation for Tesla Inc.'s first electric car factory in Europe.

The Higher Administrative Court for Berlin-Brandenburg ordered Tesla to stop clearing trees on the wooded site near Berlin until it considers an environmental group's appeal. In a statement Sunday, the said it had to issue the injunction because otherwise Tesla might have completed the work over the next three days.

A lower court in Germany ruled last week that Tesla could clear the trees for its factory. But the environmental group Green League Brandenburg appealed, citing the potential for the factory to pollute the area's drinking water and other issues. In its statement, the higher court said there is no reason to assume that the Green League's appeal won't succeed.

German officials celebrated in November when Palo Alto, California-based Tesla decided to build its first European factory in the country. Tesla said the new plant will build batteries and vehicles, starting with the upcoming Model Y SUV. The company had hoped to complete the factory in the middle of next year.

Last month, German officials said 187 pounds of World War II ammunition had been found at the site as Tesla began clearing it.

Tesla has two other vehicle in the U.S. and China.