I have one Motto, for a lack of a better term, about this sort of people and life in general. "Do Not Be Victimized!" Opening up opportunities, for these types of co-workers to gain leverage on you. There are several things you have to realize, about these types of people; But dealing with them demands some "self examination".
Finding yourself being compromised, is usually becuase you were either in the area of a negative event, or because you might have attempted to "cut corners" and put yourself in the the cross hairs of the person. Normally, If you examine the situations, where this co-worker has ran to the boss and threw you under the bus, you may find that your hands were not totally clean (That is you had some involvement in the situation.)
Here are some suggestions as to removing yourself from the situation:
1. Remove yourself from the situation, by removing the opportunity for this person to have access to you.
2. Make sure you are not "cutting corners".
3. If you make a mistake, or cause an event that may put you in a negative light; always be the first to inform your boss. Never allow the opportunity for the "Control Freak" to get the jump on you.
4. When confronted, after the boss has heard the "hottest" news about your faults, Take responsibility, Describe why you did what you did, and take the time to clear up untrue or fuzzy details that were not included in the remote citing of the incident. Even if it means, letting the boss know what roles the reporting party had in the events.
This is only a few suggestions, but with only these things in hand, you will find that the "control" is returned to you. therefore, when that opportunisitic and power hungery person has the "fire" dausted, they look like a foolish child.
This has played well, in my life. "Power playing", "Self-serving" and "Controlling" are signs of insuecurity, in the person whom
consumes him/herself in the practice(s), and typically has to validate themselves, as "model" employs or bosses whom are important to the over all security of the business. Believe that they have no true thoughts of the status of the business; Only themselves.