Use the "would" when there is a condition, and "if."
Say "I will not do this again" to say simply that you will not do it.
"If I were you, I would... " because you have the conditional situation.
If you say "I would not do it," it sounds like you are putting a condition on it. I would not do it, if I knew you'd give me a million dollars not to.