"One-Way" collisions with 2D Sprites

Hi!

I’m trying to make so my character can pass from below to above in a platform, using sprites, the platform has a box trigger that sticks out the bottom so the character can disable collisions before actually colliding.

But my code gives me loop detected:
image

What’s better way to do it? how do i solve this problem? Thanks!