Everyone I knew was either crip or piru
Cousins in elementary, relatives in high school
Kendrick grew up around gang life — everyone he knew was either a crip or a blood (Piru). It was all around him.
The line Cousins in elementary, relatives in highschool is a ulterior way of telling us that the actual cousins he had fun with in elementary (where no one wanted to be a gangster and life was simpler) grew up to become a source of shame/caution to the point where they grew apart. Thus transitioning from cousins to mere [distant] relatives.
Crips call their friends/family “cousin”, and Bloods call their friends/family “relative”. He went to a Crip elementary school and a Blood high school.
To help improve the meaning of these lyrics, visit "Average Joe" by Kendrick Lamar Lyrics and leave a comment on the lyrics box