Donald Trump could toss Taiwan aside if he wins the US election, Beijing has hinted, given the former president's "America first" position.