In my experience, it’s best to prune immediately after fruiting, before new spring growth emerges. This maximizes next year’s fruit crop. Remove any dead or damaged branches annually.