It may not be illegal, but it is unethical and a school may rescind an offer of admission. (Though, admittedly, I have no idea if this happens.)
https://professionals.collegeboard.org/guidance/applications/ethics
(bold emphasis is mine)