There is something wrong with that way of painting trim. What about when you caulk the trim to the walls and at the 45's ? The way to do it is prime trim and install it and then caulk and putty the nail holes. Now you are ready to apply the finish paint and if you get a good angle brush you will not have to tape the walls. Oh you are going to be painting the walls after putting up new trim. Be sure to use a good acrylic siliconized caulk as crown molding is famous for pulling away from the wall as the wood dries out and just from seasonal changes.