Almost oscillatory three-dimensional dynamical system