More than that. Germany had infiltrated saboteurs into the US to subvert our industries making arms and ammunition for the Allies. Many factories and ammunition dumps were destroyed.
Germany had declared unlimited war on our shipping. Their subs were sinking US ships on the high seas. That is an act of war.
They had placed spies in our government and industries.
Germany was acting to mire the US elsewhere in the world. Their diplomats were actively trying to start a war between the US and Mexico. There is evidence Germany was behind the raids into the US by Pancho Villa.
President Wilson saw correctly that it was in everyone’s interest for the war to end.