Dmitri Medvedev, former Russian president and now Deputy Chairman of the Security Council, warned in an article in the Moscow Journal of International Law that those who continue to cross Russia’s red lines must realize that Russia has full legal justification under international law to carry out a preemptive nuclear strike in the Ukraine conflict.

In the article, written in September but published on Tuesday—just days after the issue of nuclear war was taken up at the historic Shenzhen Summit of Presidents Xi, Putin, and Trump—Medvedev, who is not only known for his blunt statements but is also a scholar in international law, states that though Russia’s nuclear doctrine “doesn’t directly provide for the preemptive use of nuclear weapons,” the West’s supply of nuclear weapons to Ukraine, either openly or covertly, could compel Russia to take preemptive action.

“Should the above-mentioned scenarios unfold, the head of state is not only entitled but also obligated to use nuclear weapons. Everyone who is adding fuel to the fire today must fully realize this,” he writes.

Turning to the legal basis of Russia’s stance, Medvedev cites the 1996 Advisory Opinion of the International Court of Justice, “The Legality of the Use by a State of Nuclear Weapons in Armed Conflict,” which, he says, “acknowledges a situation in which a nuclear-weapon state may face a matter of survival (regardless of whether it is threatened by an attack from a nuclear or non-nuclear state),” and that “international law does not prohibit a nuclear-weapon state from using nuclear weapons—that is, from employing the most powerful means of defense at its disposal—for the sake of its own survival.”