Well, you proved that result was false.
But when is it correct? First assume both $ \lim_{x \rightarrow \infty} f(x) $ and $ \lim_{x \rightarrow \infty} g(x) $ exist (on the extended real number line).
If both limits are finite, if both are infinite or if one is infinite and the other is non-zero, your theorem is correct and indeed
$$ \lim_{x \rightarrow \infty} f(x)g(x) = \lim_{x \rightarrow \infty} f(x) \lim_{x \rightarrow \infty} g(x) . $$
To verify this, simply use the definition of convergence and check all cases, using usual conventions to multiply infinite numbers. In total there are six cases to verify (finite/finite, $+\infty/+\infty$, $+\infty/-\infty$, $-\infty/-\infty$, non-zero/$+\infty$, non-zero/$-\infty$).
Use the following definition for convergence: $\lim_{x \rightarrow +\infty} f(x) = l$ if for every neighborhood $W$ of $l$, there exists a neighborhood $V$ of $+\infty$ such that for every $x$ in $V$, $f(x)$ is in $W$.
In the last definition, the neighborhood of a number is simply a non-empty open set containing that number.