As long as you lived in the low tax state and didn't reside in the high tax state for the majority of the year it could work.
1. https://nypost.com/2025/12/29/us-news/nys-snowbirds-lose-bid...