Make another invisible sprite and make it so that mario can't move if the invisible sprite is in the way. Make the invisible sprite the shape of the area you don't want him to access.
Offline
I fixed it for you http://scratch.mit.edu/projects/archmage/314311
Offline