Social media users criticized President Donald Trump for a tweet Thursday that appeared to equate people from Chinatown with those from China.

Trump shared a video from February in which House Speaker Nancy Pelosi, whose district includes San Francisco's Chinatown, advocates for people to visit the neighborhood three weeks before the state issued stay-at-home orders because of the COVID-19 pandemic.

"To everyone, you should come to Chinatown. Precautions have been taken by our city. We know there's been a concern about tourism traveling all throughout the world, but we think it's very safe to be in Chinatown and hope that others will come," Pelosi says in the video, taken from a news conference with local business owners urging people not to discriminate against Asian-owned businesses.

The Morning Rundown Get a head start on the morning's top stories. This site is protected by recaptcha

The president accused Pelosi of encouraging people to "pack" the American neighborhood after his administration had restricted flights from China weeks ahead of the news conference.

"Crazy Nancy Pelosi deleted this from her Twitter account. She wanted everyone to pack into Chinatown long after I closed the BORDER TO CHINA," he wrote. "Based on her statement, she is responsible for many deaths. She's an incompetent, third-rate politician!"

Full coverage of the coronavirus outbreak

The Trump administration did not completely bar entry from China; rather, it restricted the entry of foreign nationals who traveled to the country within the previous 14 days. The administration made exceptions for immediate family members of U.S. citizens and permanent residents. Pelosi spokesperson Drew Hammill also noted in a tweet that the speaker did not post and delete the video, which came from San Francisco television station KPIX.

The tweet prompted backlash from many in the Asian American community and beyond, including the chairwoman of the Congressional Asian Pacific American Caucus, Rep. Judy Chu, D-Calif., and Chris Lu, who was Cabinet secretary in the administration of President Barack Obama. They pointed out that Asian Americans are experiencing a significant rise in hate attacks tied to COVID-19 and accused him of pushing the idea that Asian Americans are perpetual foreigners.

We don't have a border with China. Also, the fact that you can't distinguish between China & Chinese AMERICANS puts Asian American lives at risk. @SpeakerPelosi stood with the #AAPI community as you were stoking xenophobia and downplaying the threat from coronavirus entirely. https://t.co/Q0OHATUsP8 — Judy Chu (@RepJudyChu) April 16, 2020

Most major U.S. cities have a Chinatown. Chinese Americans live there, as do Americans of all races and ethnicities.



Only a racist would think a Chinatown is the same thing as China.



And that's what Trump is - a racist. pic.twitter.com/xc4HW4Wfrb — Chris Lu (@ChrisLu44) April 16, 2020

Trump really has no fucking idea that there's a difference between China... and Chinatown. https://t.co/34LI47dxMg — Angry Asian Man (@angryasianman) April 16, 2020

How many siren emojis does this merit? 🚨🚨🚨🚨🚨



To @realDonaldTrump, there's NO DIFFERENCE between Chinatown and China.



He doesn't give a shit how many of us Asian Americans get hurt or killed if it means he can enrage his base enough to be reelected. It's going to get worse. https://t.co/spXwW0688E — Jeff Yang (@originalspin) April 16, 2020

Trump's tweet echoes comments he made about the speaker during a news conference about the pandemic on Wednesday, when he accused Pelosi of "trying to have San Francisco parties in Chinatown."

Taylor Griffin, a spokesperson for Pelosi, said in a statement to NBC News that Pelosi stands by her condemnation of anti-Asian racism.

Download the NBC News app for full coverage and alerts about the coronavirus outbreak

"Amid the unprecedented coronavirus public health crisis, the Asian American community is battling the pandemic on multiple fronts as their health, dignity and safety are under attack with the rise of anti-Asian racism," Griffin said. "As she communicated during her visit to Chinatown three weeks prior to the shelter-in-place order, Speaker Pelosi remains staunchly committed to combating bigotry while ensuring the safety and economic wellbeing of the AAPI community in San Francisco and across our nation."