The crossover from classical to quantum regime in the problem of the decay of the metastable state