China has condemned the US naval blockade as “dangerous and irresponsible” after President Donald Trump threatened to sink boats entering or leaving Iranian ports.