A judge has warned a sex offender about the possible consequences of his bad behavior after an outburst at a restaurant in The Villages.