A would-be thief from Liss who damaged a pair of designer sunglasses has been given a suspended prison sentence by a Surrey court.