MV Galv Puzzle Functions (event going out of boundry problem)

I have 2 characters running around and when they bump into eachother they jump back, but that makes me have to put one event as through in order to work, but when they are, it will cause the event to go out of boundry, any way to fix this?

as you see here, the event with Through is going out of boundry

link to plugin used:

file for the event problem:

Original thread: https://forums.rpgmakerweb.com/threads/galv-puzzle-functions-event-going-out-of-boundry-problem.133045/