To prevent tears, you can try chilling the onions in the refrigerator for about 30 minutes before cutting, as this reduces the release of the irritant gas. Another method is to use a very sharp knife, which causes less cell damage and thus releases less irritant gas.