This is similar in a way to the following question, but the solution the MBraedley gave didn't work for me. As the linked post says, I've also tried the many
! values in front of the coordinates etc., to no avail.
Essentially, I'm creating a "safe zone" area for the spawn (regardless of spawn protection settings) of my realm, similarly to that of survival servers like what LemonCloud had. I've got detecting in the area down, but now I need it for those outside the area.