Rollers can spray a fine mist of paint so you want to get any roller work out the way first. Also when you put wallpaper up you want top and bottom already painted, so that you don't get paint on the wallpaper. So you paint the ceiling , then the skirting and door frames and so on, then put the wallpaper up. Personally I trim the wallpaper in place using a very sharp knife.