charles
Britain's Prince Charles (right), and the Governor of the Bank of England Mark Carney smile after meeting school children in the museum during a visit to the Bank in London, Dec. 7, 2016. REUTERS/Kirsty Wigglesworth/Pool

Amid controversy over an upcoming state visit, Britain's Prince Charles made comments at a World Jewish Relief charity event that could be taken as a critique of President Donald Trump. At the event in which others expressed views staunchly against Trump, Charles said the world was at risk of forgetting lessons of World War II, reported ITV News Tuesday.

"The work of World Jewish Relief enables us to rally together, to do what we can to support people practically, emotionally and spiritually, particularly at a time when the horrific lessons of the last war seem to be in increasing danger of being forgotten," Charles said.

The comments come days after Trump signed a controversial executive order that barred immigration from seven Muslim-majority countries. The move has sparked protests and widespread criticism.

At the event, the United Kingdom's Chief Rabbi Ephraim Mirvis called Trump's order "totally unacceptable"

"Not much hope from the United States of America, of all countries, where President Trump appears to have signed an executive order which seems to discriminate against individuals based totally on their religion or their nationality," Mirvis said, via ITV News. "We as Jews perhaps more than any others know exactly what it is like to be the victims of such discrimination and it is totally unacceptable."

Charles, the heir apparent to Queen Elizabeth II, had expressed he would be willing to work with Trump to develop interfaith relations, according to a report in The Guardian that cited a "royal source."

Meanwhile, nearly 1.7 million people have signed a petition asking the U.K. to revoke an invitation for Trump to make an official state visit to Britain. It argued Trump should be allowed in the U.K. as a head of state but that an official state visit would "cause embarrassment to Her Majesty the Queen."

Trump has reportedly expressed affection for Britain's royal family and wants to play golf in Britain as Elizabeth looks on during his visit. British officials have said Prime Minister Theresa May would not revoke her invitation to Trump because it remained "substantially in the national interest," according to the Guardian.