KUANTAN, Malaysia — In the world’s most vital maritime chokepoint, through which much of Asian trade passes, a Chinese power company is investing in a deepwater port large enough to host an aircraft carrier. Another state-owned Chinese company is revamping a harbor along the fiercely contested South China Sea.

Nearby, a rail network mostly financed by a Chinese government bank is being built to speed Chinese goods along a new Silk Road. And a Chinese developer is creating four artificial islands that could become home to nearly three-quarters of a million people and are being heavily marketed to Chinese citizens.

Each of these projects is being built in Malaysia, a Southeast Asian democracy at the heart of China’s effort to gain global influence.

But where Malaysia once led the pack in courting Chinese investment, it is now on the front edge of a new phenomenon: a pushback against Beijing as nations fear becoming overly indebted for projects that are neither viable nor necessary — except in their strategic value to China or use in propping up friendly strongmen.