The young fan who got ragdolled by security for rushing Lionel Messi late last month also got a tongue-lashing from cops, TMZ Sports has learned.
Check out Fort Lauderdale Police Department body camera footage we obtained this week ... just after Ramsey Khatri was thrown out of Inter Miami Stadium on May 25 for getting too close to Messi at a youth soccer event -- police chastised him for the boneheaded move.

MESSI UNBOTHERED
One of the responding officers at first wondered why the 18-year-old even tried to get near the footballer .