“I feel something so right
Doing the wrong thing
I feel something so wrong
Doing the right thing”

OneRepublic – Counting Stars Lyrics on LyricsMode
EXPLANATION
It means that you feel like by doing the wrong thing you will make yourself feel good and happy but when you do the right thing you feel like your gonna get in trouble because of this.
EXPLANATION
It means that what seems like the right thing it might not be the right thing to a specific person and vise versa.
EXPLANATION
I think what he means by this is that he feels so right doing things that are against the normal standards hence doing the wrong thing but he feels weird awkward or wrong conforming to what society says he should be.
EXPLANATION
It means that when he's doing something bad in revenge it's good but when he's doing nothing, not reacting, doing something more intelligent than reacting, he might think that it's bad.
EXPLANATION
He says that doing the wrong thing is easier because you get more popular or whatever you get from doing wrong stuff and doing right things seems wrong because not everybody will agree with it and they think you're wrong.
EXPLANATION
Like the singer, some people get restless and uncomfortable when they're doing what's expected and the "status quo" like going to a work or school everyday, paying bills, being responsible, etc. It's technically "the right thing" by society's or the government's or maybe the "Jones'" standards, but for him, it just feels wrong. Horrible. Almost painful.

What unfortunately does feel right though is when he's "doing the wrong thing". Being unhealthy, overeating, drinking, doing drugs, rebelling, being a non-conformist, keeping odd hours, staying up all night & sleeping all day, ditching work or school or whatever should be done to do what he shouldn't be, like gorging on fried food, sweets, spirits, and substances.

Later he reiterates this concept with " everything that kills me makes me feel alive" and " everything that drowns me makes me feel alive".

All the things that feel the best are often the worst for you if you want to live a long life, etc.
EXPLANATION
It seems that Ryan feels that the living standard is not based on the socienty. He feels as if following the human tradition is so wrong.