If you're not living in a country where law can be bent unconditionally, then that's not how law works. They have to prove you did something. Not you have to prove you didn't.
Also it's really hard to find out who you are of your not do doxxing yourself. Like logging into some service which is already connected to your name and address for example.
I'm using Tor daily since years and nothing has ever happened to me.