How about, use the players onstep to check if they are in a safe zone. If they are, then reset their health to full each step.
You have to write code to make mobs spawn, so just ensure that when spawning one it's outside the safe zone, if not then just don't spawn it.