If you can swing it you are better off the pain before, but that means that you have to be able to protect the trailer while you prep etc. You also have to mask the holes so that paint
does not go through windows
I couldn't get my trailer to a protected place and did not remove the windows
etc and just masked everything off and painted.
Just do the best you can.