Prosecuting law breakers

Can federal agencies make their own rules and prosecute those who violate the rules?