“That’s unattractive” during sex

Sometimes my husband tells me straight up, “Don’t do that. That’s unattractive” while we’re having sex. Or he’ll say “You need to learn to focus on more than just your breathing.” Or “try being more exciting”. Like okay fine. I get it. I’m not always enthused to have sex (his libido is a lot stronger than mine) but telling me these things in the moment doesn’t make me want to have sex more or be “better” in the moment. I feel like these things are better left said outside the bedroom while we’re not actively having sex. Am I wrong? When would you want your partner to tell you you need to improve?