Deductions & credits

I thought that you put the money in before you closed out the HSA. Are you saying that you were no longer eligible to contribute to the HSA when you put in the $53? Or had you already contributed the limit for the year before you put in the $53?