Personally, I would say its not something that applies to those things in the same way. It isn’t illegal to have a hight carbon footprint or eat junk food but it is illegal to employ undocumented workers. The problem is, they choose to employ non documented workers because they can force them to accept appalling and unlawful work conditions as well as massively underpaying them for the value of their work.
If always then it would apply to someone who found robbing and killing you better for them in the moment. The harder thing would be for them to get a job and earn that money.
Would blaming somone for robbing and killing you be wrong?