In California, changing lanes in the middle of an intersection—or while merging from an on-ramp before it's safe—is illegal under Vehicle Code 22107 (unsafe lane change). Drivers must wait until they can fully and safely merge without impeding traffic. Violations can result in fines, points on a license, and liability if a collision occurs.
The DMV emphasizes: merge only when a clear gap exists, use signals, and match the flow of traffic. "Weaving" across multiple lanes at once is especially dangerous and heavily enforced.