A teenager charged with attempting to lure a boy away from a basketball court in Perth’s northern suburbs has appeared in court.