China has warned North Korea it could impose unilateral sanctions in the event of another nuclear test by Pyongyang.