Downsamplers and upsamplers are linear, time-varying operators. Therefore, operation order is very important.
It is also important to note that adders or multipliers (any memoryless operators) can commute across downsamplers and upsamplers: