question about caloric deficit’s

Will going over your current calorie intake, but still under your tdee, cause weight gain, or will you continue to lose but at a slower rate? Let’s use an extreme example and say your tdee is 2500, and you’ve been at 1500 for two months. But you slow the dieting down and average 2400 for the week, would that cause weight gain or just slow down the weight loss? I guess like, the reasoning behind the answer would be cool too, if you want too.

PS sorry for the potentially redundant question. New to caloric deficits as a form of cutting down, and I couldn’t figure out how to google this, and when I did, didn’t get a solid answer

question about caloric deficit’s