Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

SEOUL, South Korea — North Korea has criticized Washington's decision to ban U.S. passport holders from visiting the North, with state media describing it on Friday as a "sordid" attempt to limit human exchanges.

The North's KCNA news agency, citing an unidentified spokesman for the foreign ministry, said there was no reason for foreigners to feel threatened while in North Korea and that citizens from around the world were encouraged to visit.

Otto Frederick Warmbier is taken to North Korea's top court in Pyongyang on March 16, 2016. Kyodo / Reuters

"Our doors are always open for all Americans who visit our country out of good will and wish to see our reality," the spokesman said.

The U.S. State Department said earlier this week the ban would take effect on Sept. 1, although some, including journalists and humanitarian workers, may apply for exceptions.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

The ban will make reclusive North Korea the only country to which U.S. citizens are banned from traveling.

It follows the death in June of U.S. student Otto Warmbier, who was sentenced in North Korea last year to 15 years' hard labor for trying to steal a propaganda item from his hotel.

Warmbier was in a coma when he was released by the North on humanitarian grounds and circumstances of his death remain unclear.

KCNA did not name Warmbier in Friday's report but said the North had delivered "just punishment" to some U.S. citizens who had carried out acts against the regime.

North Korea is currently holding two Korean-American academics and a missionary in addition to a Canadian pastor and three South Korean nationals who were doing missionary work.

"There is no country in the world that would let foreigners who commit this sort of crime be," the spokesman said. "Ruling criminals by the law is exercising our confident right as a sovereign state."

North Korean leader Kim Jong Un waves at an undisclosed location in a picture released by the government on March 1. KCNA via KNS / AFP/Getty Images

The report said the ban reflects Washington's view of Pyongyang as an enemy and reiterated that President Donald Trump's administration should abandon its hostile policies towards the North.

Republican U.S. Representative Joe Wilson, who introduced the bill to ban Americans from traveling to North Korea this year, has said hundreds of Americans are among the roughly 4,000 to 5,000 Western tourists who visit the North each year.

Aside from the threat of incarceration, North Korea's growing nuclear and missile threat is perhaps Trump's most serious security challenge.

The North test-launched an intercontinental ballistic missile last month that experts believe had the range to reach Alaska and Hawaii, and perhaps the U.S. Pacific Northwest.