Suppose that {Sn, n ≥ 0} is an asymptotically stable random walk. Let g be a positive function and Tg be the first time when Sn leaves [−g(n), ∞). In this paper we study asymptotic behaviour of Tg. We provide integral tests for function g that guarantee P(Tg > n) ∼ V (g)P(T 0 > n) where T 0 is the first strict descending ladder epoch of {Sn}.