In my job, my coworker and I handle a certain aspect of development which has 2 parts, my focus is on one part while my coworkers focus is on the other part.
Over the last few months, I have noticed that my coworker frequently has improvement suggestions aimed at the work I'm doing. Sometimes he states these suggestions privately, sometimes in front of the rest of the team and the manager. I, on the other hand, didn't so far propose any improvements to his part of the work because I assume he is doing a good job and I don't want to propose new ideas for parts of the work which are not my responsibility if not specifically asked to do so.
I feel like he is meddling with my part of the work. Recently, he was literally going over the code I (and people I collaborated with) wrote line-by-line. He was doing this because he wants to add a new feature, which is a task he auto-assigned to himself. While we do collaborate closely together, I think this is casting me in a negative light because if he keeps doing this the question of: "Why didn't I suggest / implement that?" gets asked. I think it's OK to express some improvement suggestions, but I think at this point he is sort of overstepping into my part of the work, making me look like I'm not trying as hard, even though I complete my tasks competently and on time.
How can I handle this situation gracefully? Should I speak to the coworker or my manager? Should I say something like this to my manager: "I appreciate my coworker's improvement suggestions, but sometimes I feel that he is casting me in a negative light because that piece of development is my main responsibility. I do value his suggestions and I'm happy to ask him for help if I need it, however I feel that he is overstepping his work scope with some of these suggestions, some of which he auto-assigns to himself and executes."?