The same section that prohibits AOS due to being out of status is the same one that prevents AOS due to unlawful employment.
Like to put this into English: You aren't supposed to it, but by doing it you won't make yourself any worse off.
__________________
I-360 (VAWA) filed: 08/21/2018 RFE: 02/27/2020 Due: 05/25/2020 Submitted: 05/21/2020
I-360 approved: 11/10/2020
Motion to recalendar filed: 07/29/2022 Motion to recalendar approved: 08/30/2022 Dismissed: 06/07/2023
I-485 filed: 06/17/2023 I-485 approved: TBD