If you set out to commit a felony, you should probably be aware of the law.
Just because you’re aware of the law, doesn’t mean you haven’t committed a felony.