Only one thing is worse than a successful political shakedown of business and that is a botched political shakedown of business. but that is where we appear to be heading as donald trump threatens to call time on tiktoks activities in the us.

Not only has the us president trampled over due governmental and legal process in dealing with tiktok, he has also failed to deliver on his earlier promise to ban the wildly popular chinese, viral-video app in the us. a federal judge on sunday blocked any ban coming into effect.

Rather, mr trump has given his preliminary blessing to a cockamamie deal that would give oracle and walmart a combined 20 per cent stake in a new us-based company, tiktok global, while demanding that it contribute $5bn into an us educational fund (about which tiktok knows nothing) and pursue a public listing.

Mr trump prides himself on the art of the deal. but this arrangement has all the artistic structure of an abstract spray painting by jackson pollock.

For sure, there are good reasons to be concerned about tiktoks activities in democratic societies, beyond its abilities to entice teenagers to jiggle. while many of its 100m us users would regard the app as harmless entertainment, tiktok has suppressed videos on sensitive subjects, such as xinjiang and tibet.

Like all chinese companies, tiktoks parent bytedance operates at the whims of the communist party.the flip side of any chinese censorship is propaganda. should it so wish, tiktok could target users in electoral swing states in the us to push or undermine a particular agenda or candidate.

If the overriding concern about tiktok is national security then it would make more sense to ban it outright, just as india has done. if we are living in a world of informational warfare then it matters who controls the platforms.

The deals details have yet to be clarified, but, as it stands, it skirts many of those national security concerns. true, tiktoks data will be held on us servers and oracle will have an oversight role. but bytedance will retain control of the all-important algorithms that serve up content to its users and the chinese government has signalled it does not want to share such important technology. bytedance says it will also retain an 80 per cent stake in tiktok global.

Moreover, as sinan aral, co-leader of the massachusetts institute of technologys initiative on the digital economy, argues, us-owned tech platforms, such as facebook and twitter, are themselves still open to manipulation by malign foreign powers.

As he describes in his book the hype machine, russian disinformation reached at least 126m people on facebook in the 2016 presidential election and is still rampant today. this is a systemic failing that needs to be tackled, not a national security threat that can be expunged by one executive order.

The broader problem with the tiktok deal is the damaging politicisation of business. to step in to decide winners and losers on the level of individual companies and individual deals is next to unprecedented in the us and sets a very dangerous precedent, prof aral says.

The suspicion must be that mr trump does not want to alienate tiktoks us users by banning the app outright so close to the american presidential election in november. but, at the same time, publicly beating up a chinese company serves a political purpose.

Mr trump has also done favours to his corporate friends at oracle and walmart while trumpeting that tiktok would create an additional 25,000 jobs in the us, mostly in republican texas.

Such arbitrary interventionism, however, risks retaliation abroad. good luck in protecting the substantial business interests of apple and microsoft in china. do not be surprised if the eu targets us tech companies even more energetically in its quest to defend technological sovereignty. it should also provide another reason for the british government to think twice about allowing arm, the chip designer, to be swallowed by nvidia and becoming another pawn on the us geopolitical chessboard.

Undoubtedly, china has treated many foreign tech companies abysmally while firewall-ing its domestic market. but the us will not outcompete china by becoming more like china.

It will most likely succeed by doubling down on the strengths that have made the us the worlds most innovative economy for so long: the free flow of people, ideas and technologies that have provided the rocket fuel for silicon valley, open and contested markets and adherence to the rule of law.

Follow john thornhill with myft and on twitter