The son of U.S. President Donald Trump spoke at a graduation ceremony in Dubai this weekend, telling students that their "opportunities are now boundless." 

"Don't let someone's vision of your life get in the way of your dreams," Donald Trump Jr. said during his key-note commencement address at the American University in Dubai (AUD), according to CNN Money.

While the words are inspirational and uplifting, some of the young graduates may find them somewhat ironic coming from a Trump. 

President Trump's administration is currently battling in court to reinstate an attempted ban on immigrants from several Muslim-majority countries. If the ban goes through, some of the students might face very real bounds on their future plans.

On social media, a few had harsh criticism for the university's decision to invite Trump Jr. to speak.

But despite the overtly xenophobic rhetoric and policies his father has put forward, and Trump Jr. has supported, he went on to speak about the importance of diversity in his address.

"Diversity is in everything we do these days," Trump Jr. said. "But let's make sure that when we talk about diversity, we're also adding diversity of thought into the matrix."

He continued: "Don't just accept answers you want to hear. They are often not the right ones."

In September, Trump Jr. compared Syrian refugees to Skittles, sharing an image of the candy in a tweet.

"If I had a bowl of skittles and I told you just three would kill you. Would you take a handful? That's our Syrian refugee problem," he said.

He continued and said: "Let's end the politically correct agenda that doesn't put America first."

The tweet drew heavy criticism at the time, but the Trump campaign defended it. Even Mars Inc., which owns the Skittles brand, responded to critique Trump Jr.'s comments. 

But the Trumps actually appear to have a very positive relationship with the UAE. 

"To see the incredible vision Sheikh Mohammed has been able to put forward for this country is truly awe-inspiring," Trump Jr. said, referring to Dubai's ruler, Sheikh Mohammed bin Rashid Al Maktoum, vice president and prime minister of the UAE, during a February visit to open a Trump Golf Course in Dubai. 

"It is truly incredible to be part of that vision," he said. 

President Trump visited the site back in 2014, when he was just a businessman and reality TV star. At the time he had high praise for the emirate as well. 

"I think there's great, great future in Dubai," he said. 

Trump Jr. looks on as an AUD student receives her diploma Source: Dubia Media Office

Trump Jr. went on to tell students that they should try to be like his father, saying this would make them "unstoppable." 

"It's that work ethic, that passion, that perseverance that I saw in him and I saw him exercise everyday," Trump Jr. said.