If, in any suit pending, the defendant shall, at any time, deposit with the clerk, for the use of the plaintiff, the amount of the debt or damages he admits to be due, together with all costs that have then accrued, and the plaintiff shall refuse to accept the same in discharge of his suit, and shall not afterward recover a larger sum for his debt or damages due, and costs accrued up to the time of deposit, than the sum so deposited, he shall pay all costs that may accrue from and after the time such money was so deposited, as aforesaid.
§ 514.250, RSMo