In the case of the FBI, “sometimes” is understating it a bit.
The FBI was founded for the purpose of suppressing black and red dissent, and that remains their core function to this day.