US President Donald Trump said he is ready to take action against China over its effort to impose national security laws on Hong Kong.