Good writing vs Good story
Most people think of editing as this: cleaning up the writing, making the sentences flow better, improved word choice and of course catching typos and grammar errors. But none of that stuff will actually fix the main problems with the book that will cause it to fail if left uncorrected. Fix the story first - not the writing.
Story structure: