It can work both ways. But, if you’re installing it to reduce pressure due to water expansion, it is advisable to install where it occurs: on the hot water pipeline. Still, if your plumbing system has to deal with frequent bursts of water, an expansion tank can be of good service on the cold water line.