Be careful with gold, Cramer said Wednesday, adding that investors shouldn't trade the precious metal on comments from U.S. Federal Reserve Chairman Ben Bernanke on its interest rate decision.

Gold rose for a second day on Wednesday, profiting from a weaker dollar, which came under pressure ahead of the Fed's decision on interest rates. After a two-day meeting, the Fed's policy-setting Federal Open Market Committee said it intends to complete its $600 billion bond buying program in June, as scheduled. It signaled it's in no rush to scale back the program, which is intended to prop-up the U.S. economy and added the run-up in commodity prices should soon be fleeting. Bernanke will give the central bank's first post-decision news conference later Wednesday.