The privilege of self-defense rests upon the necessity of permitting a person who is attacked to take reasonable steps to prevent harm to himself or herself, where there is no time to resort to the law.