It doesn’t work that way. First, for the most part, the prosecution has to prove their case. That involves proving all the required elements of the crime, and where relevant to the crime that will involve intent. If they can’t prove intent, the crime is not capable of being proven.
Although fairly rare, not all crimes have an intent element. In those cases, ‘proving’ you did not intend the act would make no difference. Intent would be irrelevant.