Cheating...

So.. I've been with my boyfriend for 4 years now. Everything is perfect between him and I. Anyway, I cheated on him recently and told him right away. He cheated on me at the beginning of the relationship but I can't blame him for my actions. Problem is, the temptation is still there.. I'm a terrible person.. Advice?