How could I prevent any illness before prom?

Plan ahead. Practice good hand washing, avoid crowds, us antiseptic cleaners when appropriate , eat a balanced diet & get appropriate rest. If you can do this you can increase your chances of avoiding contagious illness. There are no guarantees in life, so you could have an unexpected exposure & still get sick. Think though it but accept it. Illness does not respect a schedule.