Actor and progressive activist George Takei penned a scathing op-ed Tuesday slamming President Trump as an “American terrorist” for his executive order temporarily barring travel from seven majority-Muslim nations.

Mr. Takei, a Japanese-American who was born in Los Angeles in 1937, said Mr. Trump’s order reminds him of the pain and suffering he and his family experienced being forced into a Japanese internment camp during World War II.

“I will never forget the terrorizing morning two soldiers marched up the driveway of my family’s two-bedroom home in Los Angeles carrying rifles with shiny bayonets. They stomped up the front porch and pounded on the front door with their fists,” the former “Star Trek” star wrote for the New York Daily News.

“Tears were streaming down my mother’s face as we left,” he said. “For my parents, it was a degrading, humiliating, terrifying experience.”

Mr. Trump’s executive order signed Friday temporarily bans travel from seven predominantly Muslim nations that have a history of terrorism: Syria, Sudan, Iraq, Iran, Yemen, Somalia and Libya. The order, which has sparked protests at airports across the country, also suspends all refugee admission for 120 days, and refugee admission from Syria is suspended indefinitely.

Members of Congress, Hollywood and the media have fiercely criticized the extreme vetting policy, with some describing it as a “Muslim ban,” a term the Trump administration has firmly rejected.

Mr. Takei said the order violates the U.S. Constitution and should be grounds for Mr. Trump’s resignation.

“Donald Trump is the chaos President — and it’s time that he resign,” he wrote. “He has failed this country in less than two weeks on the job, decimating sacred American ideals and sparking momentous protests in our streets and airports.”

Anticipating Mr. Trump’s order earlier this month, Mr. Takei started a petition on Care2.com opposing any policies that may target Muslims unfairly. It had garnered more than 257,000 signatures as of Wednesday morning.

“When he previously called for a ‘total and complete shutdown’ of Muslims entering the U.S. in 2015, I invited him to see my Broadway musical ‘Allegiance,’ based on my personal experience as a child in two U.S. internment camps during World War II,” Mr. Takei wrote. “We reserved a seat for him every night. He never came. I wasn’t surprised. I was on his show ‘Celebrity Apprentice’ and know how stubborn he is. Part of education is having students willing to learn. He isn’t willing.”

The actor said he would be happy to accommodate Mr. Trump’s schedule if he would like a private viewing of “Allegiance” at the White House.

“We would love for him to get a little education on this important chapter in history,” Mr. Takei wrote. “But it likely wouldn’t change his mind.”

“He is ignorant, and because of his ignorance, he is fearful,” he said. “Actually, the real terrorist is Donald Trump. He’s the American terrorist.”