I want to know if both of the sentences are grammatical or not:
I prefer not to end this.
I prefer to not end this.