Nothing is in vain. If there's something you have done, so at that particular moment of your life, at that particular stage of your development, there was some reason for that action, and if you now think that you could have done it differently, then you should know that you couldn't have. That fixes the grammar; as for the meaning, it is murky to me.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.