1 month before is fine. As I said, I moved the sufficient amount only days to a week before applying but you have to obviously keep the 500K on your account until your application is submitted (and I'd keep it until you're inside thailand with your DTV tbh)