I don't know how to do it...

I've been sexually active before with the guy i lost it too then i wanted to start living according to God & now with my next boyfriend I've also had sex before & its so hard for me to resist sex temptation... But i feel so guilty too that i feel like that sin pushes me away from God for the same reason of how ashame i am..