[BUGFIX] Prevent cloning near map border.

We identified the issue and AtomicDryad noted a possibly solution.

Sorts out item dupe and terrain dupe near map border (exactly 5 submaps away) and also prevents vehicle teleport near map border.