what? you have your "<" and ">" mixed up, switch them and it should work.
in gm you would edit the sprite coordinate variables, in sc you just use the movesprite command, same thing. and you could assign the wall coordinates to variables to make it easier to edit later
let leftwall=0
if spritex(1)<leftwall then
movesprite 1, leftwall, spritey(1)
end if