American companies are allowed to operate in China, as long as they follow local regulation. If TikTok behaviour is concerning (it is, like google/facebook/etc are also concerning), then introduce regulations that protect users' privacy and only then ban TikTok.