In Texas we can shoot people taking our property.
Yours is one of the states that allows property vandal protection. But a preset trap that uses the possibility of deadly force, even accidentally, is not legal. If your booby-trap constitutes the use of force on anyone, then you must take great care and consideration before deploying it because use of force requires that you reasonably believe that force is immediately necessary. If your booby-trap uses force on someone that it wasnt reasonable to use force on (child wanders on your property) then you will probably have your own crime to answer for.
You can shoot someone trying do you or your property immediate harm any time you feel threatened by the Castle Law. But that is not a preset trap.
red