After you've painted the light color and it is thoroughly dry, mask it off. Apply a light coat of clear to the edge of the tape, let that dry, then paint the dark color.
The clear coat will help seal the edge of the masking tape, and if any bleed-through occurs, it will be the clear paint.