Don’t make excuses to yourself when you know there is a problem with your code. Don’t say “well, it will only fail in these edge cases and I know not to use it that way.” You’ll forget, or someone else will use it the wrong way and it will break. The easiest time to fix it is when you are already working on the code and first notice the problem, not later.