Lifehacks needed😩

I have been dieting and now i am low on 4kg how to keep my result and not gain those back after the diet finishes?