I would do five nights in Bangkok and at least seven nights in the Maldives, saving Chiang Mai and Koh Samui for a future trip. With all of the flights and transfers in the Maldives, you would not have time to do much of anything at all on that itinerary. Simplify, pick two destinations and fully enjoy those places. That’s my advice.