Duterte warns war with North Korea would ‘end humanity’