EV is committing irrespectively of what refineries are doing at this point. The latest Chinese models with a reasonable range are cheaper to manufacture than ICE cars. So I can see why refineries want to get as much money as possible now before the massive switch to EV.
No Chinese EVs in the US (yet)...
This is a really complex optimization problem, but slowing EV adoption, which low gas prices help, is likely the better course for a few more years. Eventually just gouge the petrol users left is the most profit, but I don't think that has been reached yet.