a law regulates activities or states of affairs within a jurisdiction , dictating what required states should be the case and what forbidden states should not. often it also indicates negative consequences for individuals that violate it , and these negative consequences are generally enforced by some official authority. they may or may not be created by some official legislative body .