Then it becomes an issue of intent, and how someone looking into you might interpret your intent. You might end up legally in the right but still end up harassed, jailed, and/or put on trial with all the costs that entails in the meantime.
If you're underwater financially or you're clearing out an estate sale, its a legal avenue, but I wouldn't make a habit of selling self-made guns.