Why this doesn't work?

You can use Blocking Volume. Blocking Volumes will not let character pass through them, but character can be teleported to a place without them.