Facing an aggressive Beijing, Taiwan’s president issues a warning to the world