Quasi-effective stability for nearly integrable Hamiltonian systems