Sprite pathfinding pass through walls

The sprite (enemy) was set to be platformer and pathfinding but it still passes through walls. I tried the seperating the sprite and the object but it still passes through walls when the wall is blocking the sprite from moving to the ‘hitbox’.

Well, the Pathfinder was not done for platformers but for top down view games. I guess you can do something like deactivate the Pathfinder behavior when touching the wall and reactivating when the players x coordinate passes from inferior to superior or from superior to inferior to the x position of the enemy with pathfinding reactivate it.