The Espionage Act of 1917 prohibited obtaining information, recording pictures, or copying descriptions of any information relating to the national defense with intent or reason to believe that the information may be used for the injury of the United States or to the advantage of any foreign nation.
If you are convicted of gathering and delivering defense information in order to aid a foreign government, you could be sentenced to life in prison or face a death sentence. Economic espionage can also lead to 15 years imprisonment and a fine up to $5 million.