The main purpose of the Foreign Adversary Investment Prohibition Act is to prevent members of Congress from engaging in financial transactions that could benefit countries identified as foreign adversaries of the United States. The goal is to protect national security and maintain the integrity of government officials by ensuring they do not have financial ties to nations that may pose a threat.