The common wisdom is to cut back dahlias in fall after the first hard frost, but you can also cut them before the frost if they are clearly done blooming.
Can You Cut Back Dahlias Now? What To Do For Better Blooms

66
The common wisdom is to cut back dahlias in fall after the first hard frost, but you can also cut them before the frost if they are clearly done blooming.