The Ukrainian president described the potential deployment of North Korean troops as "the first step to a world war".