You are missing a lot of cultural nuances when it comes to fundamentalist Islam. They have a couple thousand years of 'by any means necessary' attitude.
Google Taqiya
Taking money / arms / double crossing Infidels and Enemies is all part and parcel of their culture. They are famous liars about even the most trivial things. It's not even about deception, you are supposed to expect that everyone is lying but show patience and very slowly parse the actual truth thru long long conversations over months, weeks, years. It's a life long poker game.
This is exactly my point.
China is the last major ancient empire/civilization that is still in existence today. It is not that China is anyone's friend, but rather it knows what it needs to do, for its civilization to survive another 5,000 years. Accumulating soft power, equitable trade, and building long-term relationships, without resorting to territorial invasions or meddling in the internal affairs of other nations is what they realized works, in the indefinite long-term.
This contrasts with the more Eurocentric view of having or taking the goods right now, for immediate consumption, at the barrel of a gun. Patience is a virtue that China has mastered and is why it has been able to endure the sufferings and humiliation, by the Western imperial powers, for the last 200 years; and now is poised to be the lone superpower, by the mid-21st century and beyond.
Having a predominantly homogenous population and culture also helps, but that's another discussion.