Being a "Good Girl" herself, I think Carrie is writing this song from personal experience, having been attracted to and ultimately hurt by quite a few "Bad Boys". Being older and wiser I think she wrote this song to her former self who was either attracted to the wrong type of guy or simply always wanted to see the best in people.