Not particularly. Besides, if you manage to control the world then you set the laws. Maybe you can get everyone to really really like you and submit their nations to you, so you don't have to break any laws...
If you enact a postfactum law to save yourself from prosecution, people will notice. Furthermore, we can assume that a society capable of doing this is a nondemocratic society, or if so, loosely democratic or fixed. This would just add to the hordes of angry people in your governmental pocket.
A better idea. You get in a position of secondary-absolute power where the chain of succession directly leads to you, such as vice presidency. Make sure that your leader is a jerk, nobody likes him, etc. It doesn't matter whether or not he's your puppet, but preferably he is.
Next, you must either hire an assassin or become one. Your target is him. Your reasoning is that he was a horrible dictator/whatnot should you choose to publicly disclose your assassination or are caught. You're automatically in their good graces if you do, but you might face trouble. If you don't horribly botch it, congratulations, you're now king of the universe.
Alternatively, latch onto Scientology. Work your way through their ranks under the ruse of an actual believer. Be as backstabbing as possible or all you'll end up with is several piles of debt. Try to manipulate them to go for a grab of power. This is when you'll go for yours. Congratulations, you are now the Pope of Scientology.