You are NOT allowed by law to shoot someone defending property. You may only pull the trigger if your life is in danger.
Where you shoot also matters. The “Castle Law” applies to inside your house or car. It doesn’t apply in the garage or outside on your property.