That to me is way worse than what you claimed to be inappropriate.
The very best thing would be to either say nothing or to congratulate without any reservations.