Washington has been brought to the brink of impeaching the president based on a complaint from an anonymous whistleblower.

Whistleblowing dates back to the nation's earliest days and, since then, it's been a risky and controversial exercise.

Americans passed the first the world's first whistleblower protection law in 1787, says Allison Stanger, author of Whistleblowers: Honesty in America from Washington to Trump. "So we're a leader in this realm and whistleblowing is really in our DNA. So that's why this particular moment is so interesting."

Stanger, a professor at Middlebury College, says the first whistleblowers reported on the actions of one Esek Hopkins in the late 1780s. "He was the first commodore of the U.S. Navy and they blew the whistle on him ostensibly for torturing British prisoners of war," Stanger says. "He was removed from his post. He tried to retaliate against the whistleblowers who were thrown in jail, and then Congress intervened."

Whistleblowers have been reporting wrong doing in government institutions ever since. But it's always been a risk, says attorney David Colapinto. "Whistleblowing is a career limiting phenomenon in the federal workforce," he says. "That's why a lot of people don't do it."

Colapinto, a founder of the National Whistleblowers Center, says the Whistleblowers Protection Enhancement Act allows workers to report directly to members of Congress wrongdoing they see in their agencies. But there are different rules for people who work in national security. "If you work in the intelligence community you must bring your concern to the inspector general before you can go to Congress," he says. But an employee at Department of Housing and Urban Development, for example, "can go right to [their] member of Congress or the committee that has jurisdiction over housing," and report their concerns. "Those are two major differences, as we're seeing play out," Colapinto says.

The whistleblower who reportedly became concerned about conversations President Trump had with the president of Ukraine, went through proper channels, and reported his or her concerns to the intelligence community's inspector general, says Colapinto. The IG deemed it an "urgent concern" and reported it to acting Director of National Intelligence Joseph Maguire, who is under law supposed to submit it to Congress. However, he has so far refused.

And that's where things broke down. Kel McClanahan, executive director of National Security Counselors, says the DNI has no authority to insert himself into the middle of the process.

"He is basically sending a message to all whistleblowers that the path that you fought so hard to get is still not going to work," McClanahan says. "And there's nothing you can do about it." That sends a very dangerous message, McClanahan says, because "basically in this world you either protect all whistleblowers or you protect none."

President Trump has attacked the whistleblower who reportedly complained about him as, in Trump's words, "a partisan person" who carried out "a political hack job." But McClanahan says the whistleblower statute specifically leaves out political disagreement from its definition of "urgent concern."

What's more, the consequences for whistleblowers can be severe. "Members of the intelligence community are constantly told not to go outside the family," McClanahan says. "They're told that they can be prosecuted. They're told that they can have their clearances removed.

And that means they won't be able to get another federal job in national security.

But for a whistleblower who believes they're protecting something bigger, it may be worth the risk.

"They would do it only if they thought there was a higher issue at stake," Stanger says. "In this case I think that's the Constitution of the United States and our democracy."

Copyright 2019 NPR. To see more, visit https://www.npr.org.