I see no need to prune that plant. Just stake it for now, to help the plant as it slowly regains its balance once you finally improve its lighting access. As much full sun as possible.
Plumerias, once fully awake and established, is one of my favorites here when we are in these heat wave conditions, one of the few plants I have that truly enjoys direct sun and our triple digit temps, but have to water daily now that summer temps is here.
Your area definitely has better humidity levels too, so your plant should eventually adjust once you improve the lighting and be more consistent with watering.