Washington (Reuters): U.S. President Donald Trump warned Iranian President Hassan Rouhani on Friday to "better be careful" after Rouhani was quoted as saying that anyone who speaks to Iranians with threats would regret it.

At brief appearance in the press cabin aboard Air Force One, Trump was asked regarding Rouhani 's reported remarks to a rally in Tehran to celebrate the anniversary of the Islamic Revolution.

Media reports quoted Rouhani saying as Iran had shown in the 38 years since the revolution that "it will make anyone who speaks to Iranians with the language of threats regret it."

Trump said "He better be careful."

Trump on Feb. 2 put Iran "on notice" over charges that Tehran violated a nuclear deal with the West by test-firing a ballistic missile, taking an aggressive posture toward Iran that could raise tensions in the region.

Trump stated regarding Rouhani while flying on the presidential jet carrying him and Japanese Prime Minister Shinzo Abe for a weekend at Trump's Mar-a-Lago retreat in Palm Beach, Florida.