Stability of the crank-nicolson scheme and maximal regularity for parabolic equations in spaces