Wash the wall and the edge of adjacent walls and ceilings thoroughly, using a soft sponge dipped in soapy water. After the water dries thoroughly, lightly sand the wall and the edge of adjacent walls and ceilings with 100-grit sandpaper. Brush away sanding dust with a rag.
Apply painter’s tape along the edge of the wall or ceiling adjacent to the wall you want to paint. Press down firmly on the edge of the tape facing the wall you want to paint.
Using an angled brush, apply painting caulk or paint that matches the current color of the wall along the edge of the tape facing the wall to be painted. Make the caulk or paint overlap the edge of the tape.
Allow the paint or caulk to dry thoroughly before painting the wall the desired color. The dried paint or caulk will seal the edge of the tape, preventing different-colored paint from seeping underneath.
Paint the edge of the wall with the desired color of paint, using an angled brush. Overlap the edge of the tape as you paint.
Finish the wall with the desired color of paint, using a paint roller.