Aside from nukes, which would draw an obvious and unstoppable reprisal from the U.S., China does not have the military capability to meaningfully threaten the U.S. They don't have the aircraft, ships, subs, landing craft, etc. And again, I don't know why they would want that.
They do have the means to threaten their regional neighbors, though, and some of them are U.S. allies. That's the WWIII threat: that Chinese regional aggression sucks the U.S. into a military confrontation on China's turf.
I do agree to the extent that though the US would win any initial skirmish the long term viability of such an effort close to or on the Chinese mainland is probably not great.
Then again I can't come up with any reason the US would want to fight a war with China either (or vice versa), but who knows these days.
For example, I believe China could easily organize and fund far more terrorist attacks than, say, bin laden ever did. Furthermore, their terrorist attacks could much more easily utilize nuclear material.