There is no crime if the act is committed in exercise of the right of legitimate defense. This right is established if the following conditions are met: 1- If the defender faces an immediate danger from a crime against himself or his property or the life or property of another, or believes that this danger exists and his belief is based on reasonable grounds. 2- That the defender is unable to resort to the public authorities to avoid the danger at the appropriate time. 3- That the defender has no other means to repel this danger. 4- That the defense is necessary to repel the assault and proportionate to it.