This concerns a discrete random variable $X$. I assume the relation doesn't hold in general, but I would like to prove this.
I have tried to use the property that $$ E(g(X)) = \sum_x g(x)f(x) $$ and then simply write $$ \sum_x \frac{1}{x}P(X=x) = \frac{1}{\sum_x x P(X=x)} $$ and then play around with this algebraically without any success.
Let X be the discrete distribution which takes values 1 and 2 with equal probability. Then $E (X)=\frac32 $ but $ E (\frac1x) = \frac34 $.
(Almost any distribution you choose, discrete or continuous, will confirm that $E(\frac1X)\ne\frac1{E(X)}$. The underlying reason is that $\frac 1a + \frac1b \ne \frac1{a+b}$.)