Let $P(X) \in \mathbb Q[X]$ be a monic polynomial of degree $n$ and $a \in \mathbb Z$. We have the implications $$a P(X) \in \mathbb Z[X] \implies a^n P(X/a) \in \mathbb Z[X] \iff \text{the roots of $P$ lie in } \overline{\mathbb Z}/a \,.$$
I would like to add extra conditions to the statements on the right to make this an equivalence.
This question is a bit vague, naturally, because I don't know what conditions to add. Of course, I don't want anything trivial that amounts to saying that $aP \in \mathbb Z[X]$. My motivation below can help to get a feeling for what type of condition I'd like to see. Something like "$aP$ sends integers to integers" would be acceptable.
Motivation. I started thinking about this when answering (or trying to) the following questions:
If $f(x)\in\mathbb Q[x]$ and $f(f(x)),f(f(f(x)))\in\mathbb Z[x]$ prove that $f(x)\in\mathbb Z[x]$
Ideas. Requiring that $aP(\mathbb Z) \subset \mathbb Z$ is not sufficient: take $a = 2$, $P = X^3 + \frac{X^2+X}4 = \frac{(2X)^3 + (2X)^2 + 2 (2X)}{8}$, which has roots in $\overline{\mathbb Z}/2$.
Even imposing the same on all derivatives of $aP$ and imposing that $c-d \mid aP(c) - aP(d)$ is not enough: $a = 2$, $P = X^5 + \frac{X^4+X^2}4$.