Oops I committed a federal offense

I accidentally committed a federal offense today. But like, was it really my fault? Or was it the government's for making it a federal offense to begin with?