China should then learn how to thwart their efforts and get more the country's elites on their side. As they continue to grow stronger economically, It means they have more resources and finance to create and support more projects, and ways to gain influence over the elites.
As for Pakistan's case, recent news announced that the new prime minister vows to complete and support the CPEC project, so it doesn't seem like the US was able to completely able to thwart China's interest in the country or China's influence over Pakistan is even greater.
I don't think that type of behavior will set well with a lot of business elites in their allies and target countries, and may eventually lead to growing resentment and possibly shift in alliance if they continue like this, so short-term they are able to cajole their allies and coup countries to do what they want, but if they don't continue to invest or counter those negative influences, then eventually they'll lose them.