It has always been illegal to use a toy gun to commit a robbery. If that hasn’t stopped the bad guys, why should this. This is just a way to arrest people not doing anything wrong.
What about baseball bats, crowbars or any other thing that could be used as a club?
Why not put a fence in front of the ocean?
People drown every year.