before the sun actually burns out it will heat up to the point that it depletes carbon dioxide and photosynthesizing organisms will die off which will drop atmospheric oxygen levels dramatically and it's going to happen too fast for adaptation, as the oxygen decreases methane will increase and the ozone layer will cease to exist, the resulting radiation will destroy all life that was able to survive up until that point
there won't even be cockroaches, only microbes
there won't even be cockroaches, only microbes