It is important to note that the box topology and the product topology are equivalent on any product of finitely many topological spaces. Therefore, to make this fail, we need to look at infinite products for counterexamples. Let's investigate precisely where problems arise as we pass from finite to infinite products.
First, let's think about what the preimage of a subset $\displaystyle \prod_{i \in I} T_i \subset \prod_{i \in I} X_i$ looks like. If $f_j^{-1}(T_j) = S_j$ for some $j$, notice that $\displaystyle f^{-1} \left( \prod_{i \in I} T_i \right)$ cannot contain points outside of $S_j$. As this will be true for all $j \in I$, we'll have $\displaystyle f^{-1} \left( \prod_{i \in I} T_i \right) = \bigcap_{i \in I} S_i$.
Next, recall that the box topology has a basis consisting of sets of the form $\displaystyle \prod_{i \in I} U_i$, where each $U_i$ is open in $X_i$. Using this fact, one can show $f$ is continuous $\iff$ the preimage $\displaystyle \bigcap_{i \in I} f_i^{-1}(U_i)$ of each basis element is open in $A$. Since finite intersections of open sets are open, $f$ is continuous if $I$ is finite. On the other hand, infinite intersections of open sets are not necessarily open, so $f$ is not necessarily continuous if $I$ is infinite. For something concrete, this example takes advantage of $\displaystyle \bigcap_{n \in \mathbb{N}} (-1/n, \ 1/n) = \{0\}$ not being open in $\mathbb{R}$ under the usual topology.
However, if we endowed the product space instead with the product topology, then notice only finitely many of the preimages $f_i^{-1}(U_i)$ would be proper subsets of $A$, even if $I$ is infinite. So $\displaystyle \bigcap_{i \in I} f_i^{-1}(U_i)$ would be an intersection of finitely many open sets and thus would be open in $A$. This is to say: $f$ would be continuous.