I do the wall areas first with a wide roller or sometimes brush. These are more difficult to control and will sometimes get paint on the trim and wallboard areas. So doing them last allows for covering those areas and allows more accurate application using a small brush or narrow roller.