(Ack, you made a new question just before I started updating my answer)
Since we are interested in what happens at $I$, consider its semi-localization $A_I$ of $A$ formed by inverting every element of $A$ relatively prime to $I$.
This truly does kill every prime not dividing $I$ by the Chinese remainder theorem: for every other prime there is an $a \in A$ such that $a \equiv 0 \bmod \mathfrak{p}$ but $a \equiv 1 \bmod I$.
Asking if $\alpha = \beta / \gamma$ with $\gamma$ relatively prime to $I$ is thus equivalent to asking of $\alpha \in A_I$. This is true iff the prime factorization of $\alpha$ as a fraction over $A_I$ contains no primes to a negative power.
Given such an equation, $\alpha$ is furthermore relatively prime to $I$ if and only if $\beta$ is.
The question you actually asked can be phrased as asking if $\alpha$ is a unit in $A_I$ rather than simply being an element of $A_I$.