"All of the fools that are so focused on looking only at Russia should start also looking in another direction, China. But in the end, if we are smart, tough and well prepared, we will get along with everyone!" Trump said on Twitter.
Trump and Putin met for the first official summit in Helsinki, Finland on July 16. The two presidents had a one-on-one private conversation followed by an expanded meeting. The two leaders discussed the Syrian refugee crisis, situation in Ukraine, nuclear proliferation and Russia's alleged meddling in the 2016 US presidential election.
The US president has frequently characterized the Russia probe by Special Counsel Robert Muller as a "witch hunt" that has produced no evidence of collusion in well over a year.
Meanwhile, Trump's reference to China comes amid escalating trade war between the two countries. The US-Sino trade dispute started after Washington imposed steep steel and aluminum tariffs and banned exports to Chinese telecommunications company ZTE.
China responded to a proposed tariff increase from 10 to 25 percent on $200 billion worth of Chinese products with a threat to impose duties of up to 25 percent on US imports worth $60 billion.