The Beijing government is determined to head off a looming confrontation between the United States and North Korea , which it fears could prompt a regional nuclear arms race and shatter the stability that has underpinned China 's own economic rise .