The right thing at a wrong time is a wrong thing.
The right thing at the wrong tme is the wrong thing.