Improving the lattice action near the continuum limit