Democratic Sen. Chuck Schumer on Sunday praised President Trump for slapping tariffs on $50 billion worth of Chinese products and said he urged the chief executive to do this “three weeks ago.”

“Not only do they steal our intellectual property, they keep our good companies out, and say the only way you’re going to be able to sell your American products in China … is if you come to China, make them there, and give us the techniques and intellectual property,” ​the New York lawmaker told John Catsimatidis on his AM-970 radio show.

​The Senate minority leader said he urged Trump to hit China with the penalties because the US would eventually prevail in any trade war.

“It’s going to take a little bit of toughness at the beginning. China will bark back. But they need us more than we need them —​ ​President Trump is right about that — ​and we should be strong. So I thought what he did on China is right,” Schumer said.

After the White House announced it would impose the tariffs on China beginning on July 6, Beijing ​immediately ​retaliated and said it would put penalties on $50 billion worth of US goods like beef, poultry, tobacco and cars.

But Schumer condemned Trump’s “making war” with US allies like Canada and the European Union.

“Making war with all the allies, particularly Canada … makes less sense,” Schumer said. “We should focus on China, they’re the ones hurting us, and they hurt everybody. If we do nothing about it, it’s long-term real damage to America.”

​Trump last ​month imposed tariffs of 25 percent on imported steel and 10 percent on aluminum from Canada, Mexico and the EU, setting the stage for a trade war with America’s closest allies.