For China, at least, U.S. President Donald Trump is the gift that keeps on giving. His calamitous response to the COVID-19 pandemic has made China, whose government mishandled the initial outbreak in January this year, look like an exemplar of effective governance. Moreover, Trump’s “America First” foreign policy has alienated traditional U.S. allies, making it difficult to build a broad coalition to counter China.

To be sure, Trump has delivered painful blows to Chinese President Xi Jinping. His trade and technology wars are demolishing U.S.-China commercial relations, and his administration’s support for Taiwan has infuriated Chinese leaders. But as American voters prepare to head to the polls on Nov. 3, Trump seemingly has one more gift to give to Xi: an election meltdown.

In the run-up to this referendum on his presidency, Trump has repeatedly refused to commit unequivocally to accepting its outcome. He has used his presidential bully pulpit to try to delegitimize voting by mail, and even hinted that the U.S. Supreme Court, which now has a 6-3 conservative majority following the Senate’s Oct. 26 confirmation of Trump’s recent nominee, Amy Coney Barrett, would intervene and presumably deliver him a second term.