the only thing is, the player might have to backtrack, and on some levels they can get around the object chasing them to go left, so I would use
Sprite.X < ViewportLeft - Sprite.width - 400
then switch it up for Y axis up and down, and X axis going right. thanks!