Rules are neutral. There are not ‘bad laws’ as much as there are people with bad intentions (or just bad people) making laws designed to hold back certain groups of people.
Some of these laws are designed to be bad for everyone on purpose. The genius of their drawing and passing is that the group meant to elevate can overcome the disadvantage in a reasonably simple fashion. It is not easy or nearly impossible to overcome for the group meant to suffer a disadvantage.
Unfair rules are meant to not be followed. Bad laws are meant to be changed for the better.
It is not a matter of right or wrong, but timing and power, as in who has the power at the right time to make the change.