I am not sure if i think it makes sense that Gold would create evidence against Mary just so that he could defend her in court and then blame Regina for the fake evidence. If he is going to go to the trouble he should have just manufacture evidence against Regina directly.
Well, he has done some crazy things to get what he wants. Remember when he started a fire so Emma could will the election by saving Regina from it?