Would using the viewportleft(), viewportright(), viewporttop() and viewportbottom() expressions help?
For example adding an action like:
Enemy on created
Enemy is overlapping wall
- enemy destroy
- system create enemy at x= random(viewportleft(0)+enemy.width,viewportright(0)-enemy.width)
Would prevent the wall overlapping.