Restrict the location of structures

How to prevent a structure from being placed inside a certain range of coordinates?
Continue to help post