Japan 's foreign minister has warned North Korea that time is running out to stop its nuclear weapons program before Tokyo and its allies impose economic sanctions .