Then crop it out and place it right on top of itself as an object. When you are done doing that, think of all the other features like this you will need in your game, and make sure your scene setup and rendering code will support it.
It's also possible to save the depth information if the scenes are 3d renderings, and use that to render your scene, so the player will not show up behind the wall.
You could also write code just to mask out that one section of the game as a special case, but it will be more trouble than it's worth, and you will have special cases all over your code.
If you just use my first technique, and place it as a foreground layer, or an object with everything drawn sorted by the y value, you will be able to go back and have a front layer everywhere in your scenes for free.
return;