Beijing believes that while Iran must be brought into compliance with the international nonproliferation regime , its nuclear program does not represent an imminent danger of producing nuclear weapons and diplomacy should therefore be given a lot more time .