Answer:
to prevent spies from gaining information about U.S. submarines
Step-by-step explanation:
The Espionage Act prohibited individuals from expressing or publishing opinions that would interfere with the U.S. military's efforts to defeat Germany and its allies.