You may believe that telling yourself "you can’t do it" will save you from not having the experience of trying and failing.
But that can’t be true because you aren’t being saved from anything just by having that negative thought.
What saves you is picking up and trying again.