Timing is crucial in IP protection. Ideally, you should:
Apply for patents before publicly disclosing your invention. Register trademarks as soon as you have a brand name or logo. Secure copyrights when your creative work is complete and ready for publication.