Malaysia's former leader Mahathir Mohamad has complained that the government is trying to demonise him because he questioned its policies.