how did the espionage act protect americans?

how did the espionage act protect americans?
I need this for an essay…its due in 2 days and I don’t know what the Espionage Act is. Thanks for all your answers in advancešŸ˜„

The act was meant to ensure national security and promote Nationalism during World War I.

The Espionage Act was passed by the 65th United States Congress on June 15, 1917, during World War I.

This act made it a crime, punishable by a $10,000 fine and 20 years in jail, for a person to convey false reports or false statements with intent to interfere with the operation or success of the military or naval forces of the United States or to promote the success of its enemies.

The laws were ruled constitutional in the United States Supreme Court case Schenck v. United States, 249 U.S. 47 (1919).

The law was later extended by the Sedition Act of 1918, which made it illegal to even speak out against the government.

During and after World War I the Espionage Act and the Sedition Act were used in prosecutions that would be considered constitutionally unacceptable in the U.S. even in the political climate after the September 11, 2001 Terrorist Attack on New York’s World Trade Center. While much of the laws were repealed in 1921, major portions of the Espionage Act remain part of U.S. law (18 USC 793, 794) and form the legal basis for most classified information.