Anti-protest laws swiftly implemented in the wake of the Bondi Beach massacre are excessive, unconstitutional and should be tossed, a court has been told.