In Shmos 22:1 it says that if a robber is caught burrowing in to your house and you kill the robber you are exempt. It teaches us that self defense is allowed as we have the concept that if one comes to kill you, one should kill the killer first to defend oneself.
The question was asked if a person who gets drunk and hits people to the brink of death is considered a “Rodef” at the time he starts to drink? Reb Chaim Ozer in Shailos Utshuvos Achiezer says one would not be allowed to kill a safek Rodef. However, Igros Moshe says that only a safek that is close to a vadai one would be allowed to kill.
Reb Chaim Ozer was also asked about a lady who was sick and pregnant and was told if she goes full term she would die. If the mother’s life is in danger, there is no question that she would be allowed to end the pregnancy as the fetus is considered a Rodef. Reb Chaim Ozer says that killing a fetus is still more lenient than killing a human as a fetus does not have a Nefesh.
The Gemara in Avoda Zora 10b describes how Antuninus the king of Rome would come to Rabbeinu Yehuda Hanasi in an underground tunnel. He would kill the guards to keep the secret. Tosfos answers that he was worried that the ministers would kill him, so therefore he said this is self-defense. We see from this Gemara that one could consider a future Rodef a Rodef now.