Did I overreact in this driving situation?

I was driving up a busy three lane road — I was in the middle lane. And this road is lined with restaurants and other businesses. As I was driving this car suddenly quickly tries to exit out of a McDonald parking lot. The front of his vehicle just reaches the road divider, and to me, it looked he was trying to

I was driving up a busy three lane road — I was in the middle lane. And this road is lined with restaurants and other businesses. As I was driving this car suddenly quickly tries to exit out of a McDonald parking lot. The front of his vehicle just reaches the road divider, and to me, it looked he was trying to merge into my line. So I quickly maneuver slightly into the farthest left lane, just passed the line, in order to avoid this car. There was a car coming up next to, but thankfully the car notices me and just moves light further left. Everyone left unscathed. My question is did I overreact by maneuvering like I did? Or was it justified? It all happened so quickly, and the guy just speeds into the lane next to me I didn't know want to think. This was a 35 zone. I was going about 30. My worry was that if I just stopped suddenly the car behind me would re-end me. So swerving a little made sense at that second.

Other answer:

xDark_Genomex =):
No you didn't overreact at all. That is very defensive driving. The only thing I would always do when driving is check my mirrors every so often to keep track of the cars around me so that if I do need to make a quick maneuver, I know that either there is a safe distance between the cars around me or which direction i can go to cause the least amount of damage.
MattM:
swerving is never good because you'll end up hitting the car next to you which is your fault and the guy that pulled out will just drive away… if the road isn't busy and you know there is nobody around I would have just rapidly swapped lanes to the far left lane. and don't care about the person behind you, it's their responsibility to stop and not be following too closely
Hugo90:
The law says you should slow down and stay in your lane. If you swerve and hit another vehicle, it's your fault. If you slow down and get rear ended, it's their fault.
ㅤ:
A thought shared.