Difference between "Do it yourself" and "Do it by yourself"
There can be a difference between yourself as opposed to by yourself in describing an action. To do something yourself is to take personal responsibility as opposed to leaving it with a third party. To do something by yourself is to do it alone, without the input or assistance of any companions. Sometimes they are interchangeable, but sometimes they are distinct.
Do it yourself is closely associated with making repairs and improvements to houses and automobiles without the aid of professionals, to the extent that do-it-yourself has entered the dictionary as an adjective (e.g. do-it-yourself project or do-it-yourself manual) and DIY is the name of a television network with shows about people who do their own construction and landscaping.
Consider the following exchanges:
Neighbor 1: Will you have the contractors paint the garage door?
Neighbor 2: No, I'll do it myself.
The above simply means that Neighbor 2 will not hire contractors to paint the garage door, and will endeavor to do it himself. On the other hand,
Neighbor 1: Will you have the contractors paint the garage door?
Neighbor 2: No, I'll do it by myself.
In this case, Neighbor 2 not only is not going to hire contractors, but intends to do the painting exclusively himself, without the aid of others, which is likely to suit Neighbor 2's spouse and children just fine.