Matteo Renzi should not resign if he loses the referendum on which he has staked his premiership, his predecessor says.