The most apt preposition seems to me to be "by". #1 is potentially hard to parse. I'm not sure if a comma would improve it: I did myself in, running all the way up the street.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.