But land mines legitimately can help defend you. That's why they're deployed in war. They can be very effective at preventing the approach of dangerous people and vehicles. What if the attacker is wearing body armor? Maybe a gun won't be enough.
So you give up a small portion of your right to self-defense to avoid trampling on someone else's right to life.
Rights in conflict, solved by prioritization.