It is lawful for any person who is in peaceable possession of a dwelling-house, and for any person lawfully assisting him or acting by his authority, to use such force as the person using the same believes on reasonable grounds to be necessary to prevent the forcible breaking and entering of the dwelling-house by any person whom he believes on reasonable grounds to be attempting to break or enter the dwelling-house with intent to commit any crime therein, or to eject therefrom any person who has unlawfully entered the dwelling-house, and whom he believes on reasonable grounds to intend to commit a crime therein.