When Is The Best Time To Prune Apple Trees

?

I have a lot of apple trees spread throughout my yard. The majority are very healthy, but I notice some that are not doing well. Should I wait until the leaves drop to prune them? Or should I do it now while they are still green? Thanks for any advice you can provide!