Can you imagine a guy breaking into your car and he steals your guitar case 'cause he thinks it's a guitar and he gets it home and opens it up and there's a rake inside it an electric toilet plunger and a dog skull? That actually happened.
It makes a great deal of difference whether one wills not to sin or has not the knowledge to sin.