NATO has warned that China represents a global security threat and presents challenges to the "rules-based international order."