The laws can prevent a person from purchasing a firearm who is deemed a risk to themselves or others by a court.