I don't see why it's a crime to build a battery pack if you aren't working for Tesla.
I still don't get how you can bring up mis-wired inverter as anything related to a DIY battery pack. Without using any batteries, I can go take a wire strippers and 2 extension cords, make a male-male 120VAC cable, plug it into the gas generator in my shed and plug it into an outlet in my house when the powers out and shock a lineman.
In the country I live in we have building codes that describe how the work must be done. An owner without a license is allowed to perform that work and have it inspected and permitted. Screwdrivers aren't like lightsabers that can only work if you're a jedi (or have a college degree or certification).
I disagree with lumping every form of DIY together. Incompetent DIY projects are dangerous therefore all DIY projects are dangerous?