He was 14 and 15 years old. Either way he was old enough to know better.
The phrase “old enough to know better” implies that he is also mature enough to drink alcohol, drive a car, vote, join the miitary, live on his own, et al.