In Texas you can do both.
Sec. 9.42. DEADLY FORCE TO PROTECT PROPERTY. A person is justified in using deadly force against another to protect land or tangible, movable property:
(1) if he would be justified in using force against the other under Section [9.41]; and
(2) when and to the degree he reasonably believes the deadly force is immediately necessary:
(A) to prevent the other’s imminent commission of arson, burglary, robbery, aggravated robbery, theft during the nighttime, or criminal mischief during the nighttime; or
(B) to prevent the other who is fleeing immediately after committing burglary, robbery, aggravated robbery, or theft during the nighttime from escaping with the property; and
(3) he reasonably believes that:
(A) the land or property cannot be protected or recovered by any other means; or
(B) the use of force other than deadly force to protect or recover the land or property would expose the actor or another to a substantial risk of death or serious bodily injury.
And just below that it looks like I can install my super duper mailbox post as long I figure it was reasonable when I put it in, I wasn’t trying to kill some one, and didn’t figure someone would get killed on it.
Sec. 9.44. USE OF DEVICE TO PROTECT PROPERTY. The justification afforded by Sections [9.41]and [9.43]applies to the use of a device to protect land or tangible, movable property if:
(1) the device is not designed to cause, or known by the actor to create a substantial risk of causing, death or serious bodily injury; and
(2) use of the device is reasonable under all the circumstances as the actor reasonably believes them to be when he installs the device.