Cairo: Across the Muslim world, the refrain was resounding: President Donald Trump’s freeze on refugee arrivals and visa requests from seven predominantly Muslim countries will have major diplomatic repercussions, worsen perceptions of Americans and offer a propaganda boost to the terrorist groups Trump says he is targeting.

Trump’s stance has been evident since the early days of his campaign, when he advocated a “complete and total shutdown” of all Muslims entering the United States.

Trump has since softened his language, casting his order Friday as a way to keep terrorists, not Muslims, out of the United States.

“We don’t want them here,” Trump said as he signed the order at the Department of Defence. “We want to ensure that we are not admitting into our country the very threats our soldiers are fighting overseas.”

But in interviews with dozens of officials, analysts and ordinary citizens across Muslim-majority countries, there was overwhelming agreement that the order issued Friday signalled a provocation: a sign that the US president sees Islam itself as the problem.

“I think this is going to alienate the whole Muslim world,” said Mouwafak Al-Rubaie, a lawmaker and former national security adviser in Iraq.

“Terrorists can say, ‘See, their aim is not terror but Muslims’,” said Ilter Turan, a professor of international relations at Bilgi University in Istanbul.

For years, US policy in much of the Muslim world has been an exercise in pragmatism, framed by a transactional ethos and the bloodshed of several wars.

Yet even as President George W. Bush and then President Barack Obama launched military action or covert strikes, they publicly stressed that they were committed to religious tolerance and that there was no US war on Islam.

Now, according to some of America’s most experienced veterans of Arab diplomacy, that important distinction has been compromised — and along with it the US relationship with the very people it is seeking to befriend.

“The Islamic State [Daesh] says it is leading the war against the US,” said Ryan C. Crocker, who served as the US ambassador to five Muslim countries, including Afghanistan, Iraq and Lebanon, between 1990 and 2012. “Now it only has to pump out our press releases to prove that.”

Trump’s executive order will alienate the pro-Western elites that Americans turn to for help in Muslim countries, Crocker said. And it broke promises to people who have risked their lives to help US soldiers or diplomats.

“You know, we can be cynical about these things, but values count,” Crocker said. “This is a core identity of ours that we are repudiating in a very callous fashion. What do we do — get a new inscription on the Statue of Liberty?”

The ban on entry to the United States will affect citizens of Syria, Iran, Iraq, Somalia, Sudan, Libya and Yemen, who will be prohibited from entering the country for 90 days until the Trump administration tightens visa controls that many feel are already excessively stringent.

Refugees from Syria, whom Trump portrayed during his election campaign as potential Daesh infiltrators, will be barred indefinitely from the country.

But even in countries not directly affected by the ban, it sent a dispiriting signal.

“It gives the impression that America is no longer the country it used to be,” said Ammar Ali Hassan, a prominent Egyptian novelist. “It is no longer open to skilled people from across the world. It is no longer the land of dreams.”

On Wednesday, Trump, in his first television interview as president, framed his policy in the tones of a wider religious conflict when he referred to the Daesh as a product of the Middle Ages that singles out Christians for execution, although the group has killed countless Muslims around the world.

On Friday, Trump said that once the United States resumed the intake of refugees, Christians would receive priority. Until recently, “If you were a Muslim you could come in, but if you were a Christian, it was almost impossible,” he told Christian Broadcasting News.

In fact, the United States accepts tens of thousands of Christian refugees. According to the Pew Research Centre, almost as many Christian refugees (37,521) were admitted as Muslim refugees (38,901) in the 2016 fiscal year.

Notably, even though Trump’s ban is ostensibly based on security concerns, it excludes countries in the Middle East and Pakistan, whose citizens have been responsible for some of the most serious terrorist plots against the United States since 2001. Those countries are harder to push around. Arab leaders in countries unaffected by the visa ban may not respond with outright criticism of the United States, possibly waiting to see what active steps Trump takes in the region’s many crises.

There is also a question of moral debt. Many Iraqis and Afghans who have worked for the United States since 2001, often as interpreters, say they were promised resettlement in the United States to save them from attack at home. During the Obama administration, a program to grant special visas to interpreters was continued, even as the process was delayed by resistance in Congress and ever stricter security screening procedures.

The new measures announced by Trump now place those promises in jeopardy, said Crocker, who since retiring from the foreign service has helped several interpreters get resettled in the United States. The measures, he said, also send an ominous message to anyone who might consider working for the US government in the future.

“We are effectively saying to past, current and potential future interpreters,” he said, “that we want them to work with us and risk their lives in the field — confident in the knowledge that they will be hung out to dry.”