Hi Duane,
Welcome to ECN!. [Linked Image]
Personally, I screw the boxes to the studs,
for this very reason.
Makes later removal, where this is required, much easier. [Linked Image]