Thats an easy thing to do and doesnt require much effort. When the entire Western World has been constantly screaming "Debt Trap" then eventually the layman will also accept it as the truth. I was watching local Srilanka news and even there the protestors blame borrowing from China.
China should avoid lending to countries where there isn't effective rule of law, where corruption is pervasive and where dynasts, despots , incompetent individuals rule the roost. Pakistan too is facing economic crisis and there too people are being fed that CPEC and the associated debt is to blame.
Its time China re-evaluates its policy of non- interference and lends like Western institutions with strings attached . Because benevolent lending is certainly not producing the expected results and infact causing the opposite effect.