Restrict the activities of teenagers?
No. If an apartment complex has a rule indicating that teenagers cannot hang out at the pool area or in the common areas, then this rule is illegal. Teenagers are minor children so any rules directed against them for the most part are illegal.