by law you should park a vehicle paralell to the curb, a smart car parks head on, is this legal?

smart car

two cars are paralell parked, and there is not enough space for another car, except a smart car drives into the gap with headlights to curb, which makes it harder for the two cars to move out. this smart car hasn’t been booked yet.