So then would protecting your own family from those that would harm them interfere with gods wacky plan to test and judge them? Besides, isn't god smart enough to know that if they actually tried to do something wicked and vile, it really wouldn't matter if they were successful or not? Like if someone jumped out of the bushes, pulled a gun and shot at you, but missed. God would still know the guy tried to sin and murder you, right? He's supposed to know what's in our hearts and minds already, correct?
Again, FH, your answer lies here.
We are allowed to defend ourselves, when there is no doubt that any given enemy has determined to destroy us.
Doctrine and Covenants 98
34 And if any nation, tongue, or people should proclaim war against them, they should first lift a standard of peace unto that people, nation, or tongue;
35 And if that people did not accept the offering of peace, neither the second nor the third time, they should bring these testimonies before the Lord;
36 Then I, the Lord, would give unto them a commandment, and justify them in going out to battle against that nation, tongue, or people.
37 And I, the Lord, would fight their battles, and their children’s battles, and their children’s children’s, until they had avenged themselves on all their enemies, to the third and fourth generation.
38 Behold,
this is an ensample unto all people,
saith the Lord your God,
for justification before me.
39 And again, verily I say unto you, if after thine enemy has come upon thee the first time, he repent and come unto thee praying thy forgiveness, thou shalt forgive him, and shalt hold it no more as a testimony against thine enemy—
40 And so on unto the second and third time; and as oft as thine enemy repenteth of the trespass wherewith he has trespassed against thee, thou shalt forgive him, until seventy times seven.
41 And if he trespass against thee and repent not the first time, nevertheless thou shalt forgive him.
42 And if he trespass against thee the second time, and repent not, nevertheless thou shalt forgive him.
43 And if he trespass against thee the third time, and repent not, thou shalt also forgive him.
44 But if he trespass against thee the fourth time thou shalt not forgive him, but shalt bring these testimonies before the Lord; and they shall not be blotted out until he repent and reward thee four-fold in all things wherewith he has trespassed against thee.
45 And if he do this, thou shalt forgive him with all thine heart; and if he do not this, I, the Lord, will avenge thee of thine enemy an hundred-fold;
46 And upon his children, and upon his children’s children of all them that hate me, unto the third and fourth generation.
47 But if the children shall repent, or the children’s children, and turn to the Lord their God, with all their hearts and with all their might, mind, and strength, and restore four-fold for all their trespasses wherewith they have trespassed, or wherewith their fathers have trespassed, or their fathers’ fathers, then thine indignation shall be turned away;
48 And vengeance shall no more come upon them, saith the Lord thy God, and their trespasses shall never be brought any more as a testimony before the Lord against them. Amen.