A Condition for Almost Global Stability and Local Asymptotical Stability of Nonlinear System