i'm pretty sure it's not legal to assault someone who rings your doorbell by opening the door and immediately pepper spraying the person. if that person tries to enter or doesn't leave when asked then it's a different story. but immediately escalating to violence when someone it's outside your door seems pretty illegal.
United States