The U.S. State Department warned U.S. citizens Thursday to exercise increased caution when traveling to China.

In a travel advisory posted online, the State Department warned of arbitrary enforcement of local laws, as well as of special restrictions on dual U.S.-Chinese nationals.

Specifically, the department cited China's use of "exit bans" to keep U.S. citizens in China, allegedly in order to force them to participate in Chinese government investigations, lure other individuals back from abroad or aid Chinese authorities in resolving disputes in favor of Chinese parties.

Trade tensions with China have risen with President Donald Trump's implementation of tariffs on many Chinese goods entering the United States.

In addition, Chinese authorities have detained several Canadian citizens in apparent retaliation for Canada's arrest of a high-level executive of phone maker Huawei. The woman is fighting extradition to the United States.