A judge shamed and fined a cancer patient for his unkept yard and said if jail time was an option