SHANGRAO, China—Investors were pouring into this sleepy city in southeastern China until late last year to scoop up apartments as new high-rise projects mushroomed.

Then sentiment turned. Unsold units started piling up and developers began cutting prices. Homeowners fearing a housing-price collapse protested at one sales office in October.

The...