I don't know if there is a correct/formal phrase for it, but I'd say someone went off-trail if they wandered away from the designated ski slope, either intentionally or unintentionally.
And if they went really off-trail, especially in avalanche country, I'd call them kind of stupid.
Lynn