China has returned fire on critics of its human rights record, including Australia, by questioning the West's stance on Gaza.