If i have been a permanent resident for the past 10 years and I now wish to obtain naturalization after being in and out of the country for the 2.5 years, could I still be able to apply for naturalization? Or would I have to start all over again with my process?

Also, could I have my green taken away if I was to work outside the u.s without having a government job, but still return within the 6months requirement?

Thanks!